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

来源:学生作业帮助网 编辑:作业帮 时间:2024/07/14 19:32:28
main() {int k=1,s=0; do{if ((k%2)!=0) coutiune; s+=k;k++;}whlie(k>10); printf(%d
x)MT+Qȶ5)5VHɯLSV5T5TH/-,KV(ֶͶֶ-Lȶ34дV((Si]|g<]2醉6IEtGΆ~><@l֎KM[ }:aً_,I-I}o~:{/.H̳9/

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