谁能告诉我这个答案为啥是s=0!#includemain(){int k=1,s=0;do{if((k%2)!=0) continue;s+=k; k++;}while(k>10);printf("s=%d!\n",s);}

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/25 09:29:55
谁能告诉我这个答案为啥是s=0!#includemain(){int k=1,s=0;do{if((k%2)!=0) continue;s+=k; k++;}while(k>10);printf(
x͐JQ_5]\?OҍJqq.D DMШ`CV(l-{xBA77?F6U2gq׻ԛM]8RDnEGlQKo%u %BQIr%=FdMQrbZ!hT*oo4o QqL"u7&

谁能告诉我这个答案为啥是s=0!#includemain(){int k=1,s=0;do{if((k%2)!=0) continue;s+=k; k++;}while(k>10);printf("s=%d!\n",s);}
谁能告诉我这个答案为啥是s=0!
#include
main()
{int k=1,s=0;
do{if((k%2)!=0) continue;
s+=k; k++;
}while(k>10);
printf("s=%d!\n",s);
}

谁能告诉我这个答案为啥是s=0!#includemain(){int k=1,s=0;do{if((k%2)!=0) continue;s+=k; k++;}while(k>10);printf("s=%d!\n",s);}
k的赋值为1,s的赋值为0,赋值就是假如k=1,s=0时可以得出后面一句的结论!根据前面的赋值来推算他后面的程序输出结果.