( )。以下程序的输出结果是()。
A: 0
B: 1
C: 5
D: 6
E: include<;stdio.h>;void main(){int i; i=0; while(i<;=5) i++; printf("%d",i);}
A: 0
B: 1
C: 5
D: 6
E: include<;stdio.h>;void main(){int i; i=0; while(i<;=5) i++; printf("%d",i);}
举一反三
- 【单选题】下面程序执行后的输出结果是()。#include <stdio.h>int main(){int i=0,s=0;for (;;) {if(i==3||i==5) continue;if (i==6) break;i++; s+=i;};printf("%d",s); return 0;}#include <stdio.h>int main(){int i=0,s=0;for (;;) {if(i==3||i==5) continue;if (i==6) break;i++; s+=i;};printf("%d",s); return 0;}#include <stdio.h>int main(){int i=0,s=0;for (;;) {if(i==3||i==5) continue;if (i==6) break;i++; s+=i;};printf("%d",s); return 0;}#include <stdio.h>int main(){int i=0,s=0; A. 10 B. 13 C. 21 D. 死循环
- 中国大学MOOC: 下面程序执行后的输出结果是( )。#include int main(){ int i=0,s=0; for (;;) { if(i==3||i==5) continue; if (i==6) break; i++; s+=i; }; printf(%d,s); return 0;}#include int main(){ int i=0,s=0; for (;;) { if(i==3||i==5) continue; if (i==6) break; i++; s+=i; }; printf(%d,s); return 0;}#include int main(){ int i=0,s=0; for (;;) { if(i==3||i==5) continue; if (i==6) break; i++; s+=i; }; printf(%d,s); return 0;}#include int main(){ int i=0,s=0; for (;;) { if(i==3||i==5) continue;
- 有以下程序,运行结果是()#include<stdio.h>main(){inti=5;do{if(i%3==1)if(i%5==2){printf("*%d",i);break;}i++;}while(i!=0);printf("\n");}(3.0分)
- 以下程序的输出结果是()。 #include <stdio.h> main() { int i; for(i=1;i<=5;i++) if(i%2) printf("*"); else continue; printf("#"); printf("$\n"); }
- 以下程序的输出结果是______ 。#include int main(void) { int i, 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", i, k); return 0;}