题目内容

写出程序输出结果。#includemain(){int x,y;for (y=1,x=1;y<=50;y++){if (x>=10)break;if (x%2==1){x+=5;continue;}x-=3;}printf (“%d”,y);}

查看答案
更多问题

写出程序运行结果。#include main(){int i=0;for(i+=3;i<=5;i+=2){switch(i%5){case 0: printf("*");case1: printf("#");break;default:printf("!");break;case2: printf("&");}}}

写出程序运行结果。#include main( ){int y;for (y=9;y>0;y--){if (y%3== 0){printf (“%d\n”,y);continue;}}}

写出程序输出结果#include void main(){int i;for(i=1;i<5;i++){if(i= =3)break;}printf("i=%d\n",i);}

写出程序输出结果#includevoid main(){ int i,j; for(i=1;i<=3;i++) { for(j=1;j<=i;j++)printf("*");printf("\n"); }}

答案查题题库