【单选题】【消耗次数:1】
下列程序段中,非死循环的是()。
inti=100;while(1){i=i%100+1;if(i=100)break;}
intk=0;do{++k;}while(k
ints=10;while(++s%2+s%2)s++;
for(;;)
参考答案:
复制
纠错
相关题目
【单选题】 以下程序的运行结果是()。voidmain(){ints=0,i=0;while(i8){i++;if(i%2==0)continue;s+=i;}printf("%d\n",s);}
①  36
②  7
③  16
④  12
【单选题】 下面的程序段中,循环体执行的次数是( )。 Dim I,s For I=1 to 10 Step 2 s=s+I Next I
①  1
②  10
③  0
④  5
【简答题】 以下程序的运行结果是[填空1]。 #include stdio.hvoid main(){int i=1,s=0;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n}
【简答题】 以下程序的运行结果是[填空1]。 #include stdio.hvoid main(){int i=1,s=1;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n}
【单选题】 在下面循环语句中循环体执行的次数为()。 int i=0,s=0; while(s<20) {i++; s+=i;}
①  4
②  5
③  6
④  7
【单选题】 在下面循环语句中循环体执行的次数为( ) int i=0,s=0; while(s<20) {i++; s+=i;}
①  4
②  5
③  6
④  7
【单选题】 下面的程序段中,循环体执行的次数是( )。 Dim I,s For I=1 to 10 s=s+I Next I
①  1
②  10
③  0
④  11
【单选题】 以下程序的运行结果是(  )。 #include stdio.hvoid main(){int i=1,s=3;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n
①  7
②  8
③  9
④  10
【简答题】 以下程序的运行结果是[填空1]。 #include stdio.hvoid main(){int i=1,s=8;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n}
【简答题】 以下程序的运行结果是[填空1]。 #include stdio.hvoid main(){int i=1,s=3;do{s+=i++;if (s%7==0)continue;else++i;} while (sprintf(%d\n}
【单选题】 在下面循环语句中循环体执行的次数为( ) int i=0,s=0; while(s20) {i++; s+=i;}
①  4
②  5
③  6
④  7
随机题目
【单选题】 继《史记》《汉书》后,体例较为完备的史书是()
①  《隋书》
②  《南史》
③  《北史》
④  《新唐书》
【单选题】 南昌“八一起义”爆发于()年。
①  1921
②  1924
③  1927
④  1930
【单选题】 《舆地图》最早刊石于()
①  庐山
②  三清山
③  龙虎山
④  井冈山
【单选题】 《六一诗话》的作者是()
①  苏轼
②  黄庭坚
③  欧阳修
④  曾巩
【判断题】 元代江西人汪大渊曾3次出海远航。
① 
② 
【判断题】 毛泽东在井冈山撰写了著名的《星星之火,可以燎原》一文。
① 
② 
【判断题】 三寮村的风水师廖均卿和曾文政均曾受到明成祖赏识。
① 
② 
【判断题】 在中央苏区时期,兴国是著名的模范县、红军县、烈士县。
① 
② 
【判断题】 安源是秋收起义的主要策源地和爆发地。
① 
② 
【简答题】 <p>简述唐宋以后江西多世家大族的表现。</p>