题目内容

#include void main(){ int i=10,j;do{ j = i%2;printf( "%d",j );i--;} while ( i> 4 );}

A. 000000
B. 001111
C. 010101
D. 101010

查看答案
更多问题

#include void main( ){ int i,j,t;for(i=1,j=10;i<3;i++,j--)t=i+j;t++;printf("%d,%d",j,t);}

A. 12,8
B. 8,12
C. 9,12
D. 12,9

#includeint main (){int i = 0,j = 0;while (i < 10) i++;while (j++ < 10) ;printf("i=%d,j=%d\n",i,j);return 0;}

A. i=10,j=10
B. i=11,j=11
C. i=10,j=11
D. i=11,j=10

#include int main (){int a, b;for (a = 1, b = 1 ; a <= 100 ; a++){if (b >= 9) break;if (b % 3 == 1){ b += 3 ;continue ;}b -= 5;}printf("%d,%d\n", a, b);return 0;}

A. 10,4
B. 4,10
C. 5,10
D. 5,11

#include void main(){ char ch;while((ch=getchar())!='\n'){ if (ch>='A'&&ch<='Z') ch=ch+32;else if (ch>='a'&&ch<='z') ch=ch-32;printf("%c",ch);}}输入:ABCdef<回车>

A. abcdef
B. abcDEF
C. ABCdef
D. ABCDEF

答案查题题库