下面程序的运行结果是 。#includeint main(){int i,j;for(i=4;i>=1;i--){for(j=1;j<=i;j++) putchar('#');for(j=1;j<=4-i;j++) putchar('*');putchar('\n');}return 0;}
查看答案
下面程序的运行结果是 。#includeint main(){ int i=1;while(i<=15)if(++i%3!=2) continue;else printf("%d ",i);printf("\n");return 0;}
下面程序的运行结果是 。#includeint main(){ int i,j,k=19;while(i=k-1){k-=3;if(k%5==0){i++;continue;}else if(k<5) break;i++;}printf("i=%d,k=%d\n",i,k);return 0;}
下面程序的运行结果是 。#includeint main(){ int a=10,y=0;do{a+=2;y+=a;if(y>50) break;}while(a=14);printf("a=%d y=%d\n",a,y);return 0;}
下面程序的运行结果是 。#includeint main(){ int i=5;do{switch(i%2){case 4:i--;break;case 6:i--;continue;}i--;i--;printf(%d ",i);}while(i>0);return 0;}