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

来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/23 21:20:38
do{if(i%3)continue;n++;}while(!do{if(i%3)continue;n++;}while(!do{if(i%3)continue;n++;}while(!#includ

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++了.
你是大一新生吗?
另外,站长团上有产品团购,便宜有保证