填空题
有以下程序
main()
int t=1,i=5;
for( ; i>=0; i--) t*=i;
printf("%d\n",t);
执行后输出结果是
【8】
。
【参考答案】
0
点击查看答案&解析
<上一题
目录
下一题>
热门
试题
填空题
有以下程序: #include <stdio.h> main() char ch1,ch2; int n1,n2; ch1=getchar(); ch2=getchar(); n1=ch1-’0’; n2=n1*10+(ch2-’0’); printf( %d n ,n2);; 程序运行时输入12<回车>,执行后输出结果是 【10】 。
点击查看答案&解析
填空题
若有以下程序: main() int a=4, b=3, c==5, t=0; if(a<b) t=a; a=b; b=t; if(a<c) t=a; a=c; c=t; printf( %d%d%d n ,a,b,C); 执行后输出结果是 【9】 。
点击查看答案&解析
相关试题
设有如下变量说明,则a+(int)((int)b...
若有如下程序: main() int x=5,y...
main() printf( The sum=%d n ,...
下面函数用来求两个单精度数之和,并通过形...
以下程序中,for循环体执行的次数是 【1...