题目内容

读程序,写出运行结果。#includemain(){chargrade=’C’;switch(grade){case‘A’:printf(“90-100\n”);case‘B’:printf(“80-90\n”);case‘C’:printf(“70-80\n”);case‘D’:printf(“60-70\n”);break;case‘E’:printf(“<60\n”);default:printf(“error!\n”);}}运行结果为__________________

查看答案
更多问题

读程序,写出运行结果。#include main(){ int a=12, b= 98, c=25, min=0;min=a;if(min>b)min=b;if(min>c)min=c;printf("min=%d", min);}运行结果为:___________

读程序,写出运行结果。阅读下面的程序#include void main(){int i,j,m,n;i=5;j=6;m=++i;n=j++;printf("%d,%d,%d,%d",i,j,m,n);}运行结果为:_________________

读程序,写出运行结果。#include int fac(int n){ int f=1,i;for(i=1;i<=n;i++)f=f * i;return(f);}main(){int j,s;scanf("%d",&j);s=fac(j);printf("%d!=%d\n",j,s);}如果从键盘输入2, 运行结果为_____________________

读程序,写出运行结果。#includemain( ){ints=0,a=5,n;scanf("%d",&n);do{s+=1;a=a-2;}while(a!=n);printf("%d,%d\n",s,a);}若输入的值1,运行结果为: _________________

答案查题题库