do{if(i%3)continue;n++;}while(!

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 06:43:00
do{if(i%3)continue;n++;}while(!
xRmK@*aLWYlv17z!BF==)HF m[t;WEЋs&% E2"26؟KZH :ɩrFj!y5% K3"Rqa ?$JģpI+3HG%Ѣ*}V5x@3H;VgWzIkQvz5!-?x!k'[wI1KBt

do{if(i%3)continue;n++;}while(!
do{if(i%3)continue;n++;}while(!

do{if(i%3)continue;n++;}while(!
#include <iostream>
using namespace std;
int main()
{
int n=0,i;
for(i=2;i<5;i++)
{
do
{
if ( i%3 )
{
cout << i << " !" << "n = " << n << endl;
continue;
}
n++;
cout << "n = " << n << endl;
}while(0);
n++;
cout << "n = " << n << endl;
}
printf("%d",n);
return 0;
}
据我观察貌似是continue的作用是跳出了do while的循环体 到了while下面的n++了.
你是大一新生吗?
另外,站长团上有产品团购,便宜有保证