填空题 C语言
题号 #143636

以下程序从终端读入数据到数组中,统计其中正数的个数,并计算它们之和。 
 请填空。 
 main() 
 { int i,a[20],sun,count; 
 suum=count=0; 
 for(i=0;i<20;i++) scanf("%d", _____ ); 
 fro(i=0;i<20;i++) 
 { if(a>0) 
 { count++; 
 sum+= ______ ; 
 } 
 } 
 printf("sum=%d,count=%d\n",sum,count); 
 }

进入在线模考

参考答案

暂无

答案解析

&a[i] a[i]

你可能感兴趣的试题

找试题 · 找答案 · 找资料 在线模考