题目内容

阅读下列程序,写出运行结果。#includemain(){intx=10,y=15,t=0;if(x==y) t=x;x=y;y=t;printf("%d%d\n",x,y);}

查看答案
更多问题

阅读下列程序,写出运行结果 。#include main ( ){ int x=1, y=5;if(x!=2) y=y+2;else y=y*2;printf("%d\n", y);}

若从键盘上输入45,然后按回车键,则程序执行后的运行结果是。#includemain(){intx;scanf("%d",&x);if(x>50)printf("%d,",x);if(x>40)printf("%d,",x);if(x>30)printf("%d,",x);}

阅读下列程序,写出运行结果。#includemain(){inti=12;switch(i){case10:i+=1;case12:i+=1;case14:i+=1;default:i+=1;}printf("%d\n",i);}

阅读下列程序,写出运行结果。#includemain(){inta=1,b=1;switch(a){case1:switch(b){case0:printf("0");break;case1:printf("1");break;}case2:printf("2");break;}}

答案查题题库