题目内容

读程序,写出运行结果。 #include < stdio .h > main ( ) { float c=3.0 , d=4.0;if ( c>d )c=5.0;elseif ( c==d )c=6.0;elsec=7.0; printf ( “%.1f\n”,c ) ; } 运行结果为:_________________

查看答案
更多问题

读程序,写出运行结果。#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, 运行结果为_____________________

答案查题题库