#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
#include #define N 5void main( ){ int i;for(i=1;i
A. 14916
B. 12612
C. 24816
D. 2248
#include void main(){ int number , digit;number = 1234;while ( number != 0 ){digit = number%10 ;printf( "%d" , digit ) ;number = number / 10 ;}}
A. 1234
B. 4321
C. 321
D. 432