3-13以下程序段输出的结果是_______。#include int main(){int num=0,s=0;while(num<2){num++;s+=num;}printf("%d\n",s);return 0;}
查看答案
3-14以下程序段输出的结果是_______。#include int main(){int i;for(i=1;i<6;i++){if(i%2!=0){printf("#");continue;}printf("*");}printf("\n");return 0;}
3-15运行时输入 3,输出为______ 。#include int main(){int n,i,j;scanf("%d",&n);for(i=0;i
3-16下列程序段的功能是计算:s=1+12+123+1234+12345,则画线处应填写____ 。#include int main(){int t=0,s=0,i;for(i=1;i<=5;i++){t=i+___;(数值在前,变量在后)s=s+t;}printf("s=%d\n",s);return 0;}
3-17以下程序段输入:7 10,输出结果是 _____ 。#include int main(){int m,n,s=0,i;scanf("%d%d",&m,&n);for(i=m;i<=n;i++){if(i