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