题目内容

运行下面程序,输入72,输出结果为( )。#include int main(){char score;scanf("%d", &score);switch(score/10){ case 10:case 9: printf("A\n");break;case 8: printf("B\n"); break;case 7: printf("C");case 6: printf("D\n"); break;default: printf("E\n");break;}return 0;}

查看答案
更多问题

运行下面程序,输出结果为( )。#include int main( ){int a=8;switch(a%3){case 0: printf("%d\n", a++);case 1: printf("%d\n", ++a);case 2: printf("%d ", a--);case 3: printf("%d\n", --a); break;default: printf("%d\n", a);}return 0;}

运行程序,从键盘输入“ABCDE”,输出结果是( )。#include main ( ){char ch;while( ch=getchar( ), ch != '\n' )printf ("%c", ch+32);putchar(10);}

运行程序,从键盘输入“ABCDE#”,输出结果是( )。#include main ( ){char n=0;while(1)if( getchar() != '#' ) n++;else break;printf ("%d\n", n);}

运行程序,循环执行次数是( ),输出结果是( )。#include main ( ){int n = 1;while( n%8 )n=n+1;printf ("%d\n", n);}

答案查题题库