int i=1,s=3; do{ s+=i++; if(s%7==0) continue; else++i;} while(s

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/05 19:05:14
inti=1,s=3;do{s+=i++;if(s%7==0)continue;else++i;}while(sinti=1,s=3;do{s+=i++;if(s%7==0)continue;else

int i=1,s=3; do{ s+=i++; if(s%7==0) continue; else++i;} while(s
int i=1,s=3; do{ s+=i++; if(s%7==0) continue; else++i;} while(s

int i=1,s=3; do{ s+=i++; if(s%7==0) continue; else++i;} while(s
按顺序来:
s+=i++;//s = s+i得到s=4;i=2;
if(s%7==0) continue; //不满足,继续运行下一句
else ++i; //得到i = 3;
while(s