main() {int k=1,s=0; do{if ((k%2)!=0) coutiune; s+=k;k++;}whlie(k>10); printf(%d",s);}结果多少?

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/16 16:42:54

main() {int k=1,s=0; do{if ((k%2)!=0) coutiune; s+=k;k++;}whlie(k>10); printf(%d",s);}结果多少?
main() {int k=1,s=0; do{if ((k%2)!=0) coutiune; s+=k;k++;}whlie(k>10); printf(%d",s);}结果多少?

main() {int k=1,s=0; do{if ((k%2)!=0) coutiune; s+=k;k++;}whlie(k>10); printf(%d",s);}结果多少?
结果是0!
首先判断是否进行do-while循环;
因为k=1