题目内容

补充代码:该程序的功能是:求s=3+4+5+…+50之和,在空白处填写正确的代码。void main(){int i,sum=0;for(i=3;i<=50; (1) ){(2)}printf("sum=%d\n",sum)}

查看答案
更多问题

补充代码:输出100以内能被4整除且个位数为2的所有整数,在空白处填写正确的代码:#includevoidmain(){inti,j;for(i=0;__(1);i++){j=i*10+2;if(j%4 !=0)___(2)____printf("%d ",j);}}

读程序,写出运行结果。#includefunc(int x) {x=50;printf(“x=%d\n”,x);}main( ){ int x=200;func(x);printf("x=%d", x);}运行结果为:_________________

读程序,写出运行结果。#include main(){ int x, y =0;for(x=1;x<=10;x++){ if(y>=20)break;y=y+x;}printf(“%d,%d”,y,x);}运行结果为:_________________

读程序,写出运行结果。#include main(){ int num=0;while(num<=4){ num++;printf("%d\n",num);}}运行结果为_____________________

答案查题题库