填空题
有以下程序:
# include <stdio.h>
main()
int i, sum=0;
for(i=1; i<9; i+=2) sum+=i;
printf("%d\n", sum);
程序运行后的输出结果是______。
【参考答案】
P
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
以下程序运行时从键盘输入:1.0 2.0,输出结果是:1.000000 2.000000,请填空。 # include <stdio.h> main() double a;float b; scanf( ______ , &a, &-b); printf( %f%f n , a, b);
点击查看答案&解析
填空题
有以下程序: # include <stdio.h> main() int n1=0, n2-0, n3=0; char ch; while ((ch=getchar())!=’!’) switch(ch) case ’1’: case ’3’: n1++; break; case ’2’: case ’4’: n2++; break; default: n3++;break; printf ( %d%d%d n , n1, n2, n3); 若程序运行时输入01234567!<回车>,则输出结果是
点击查看答案&解析
相关试题
以下函数的功能是输出链表结点中的数据,形...
以下程序的输出结果是______。 # ...
若有定义语句:char str[]= 0 ;,...
有以下程序: # include <stdio.h>...
有以下程序: # include <stdio.h>...