题目内容

#include int main(){ int i,j;i=1;while(i<5){ for(j=1;j<2*i+1;j++)printf("%c",'#');printf("\n");i++;}return 0;}

A.
B.
C.
D.

查看答案
更多问题

#includeint main(){ int i,j,k;for(i=1;i<=4;i++){ for (j=1;j<5-i;j++)printf(" ");for(k=1;k<=i;k++)printf("*");printf("\n");}return 0;}

A. **********
B. ***************
C. ******
D. ***

#includeint main(){ int i,sum,m,a;sum=0;m=5;for(i=0;i<=3;i++){scanf("%d",&a);if(a>m) sum+=a;}printf("sum=%d\n",sum);return 0;}输入:2 10 8 3<回车>

A. sum=17
B. sum=18
C. sum=19
D. sum=20

#include void main(){int counter=1;while(counter <= 5){ printf("%d \n", counter );counter++;}}

A. 54321
B. 12345
C. 2345
D. 13245

#includevoid main( ){ int i,s,x;s=0;x=15;for(i=1;i<=5;i++)if (x%i==0) s= s + i;printf("i=%d,s=%d\n",i,s);}

A. i=5,s=9
B. i=6,s=8
C. i=9,s=6
D. i=6,s=9

答案查题题库