读程序,写出运行结果。intx=1;inty=2;if(x%2==0){y++;}else{y--;}printf("y=%d",y);运行结果为:_________________
查看答案
读程序,写出运行结果。 #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);}运行结果为:_________________