【简答题】【消耗次数:1】
以下程序的输出结果是[填空1]。#include stdio.h void main( ){ int a,b;for(a=1,b=1;aa++){ if (b=10) break;if (b%5==1) { b+=5; continue; } }printf(%d\n }
参考答案:
复制
纠错
相关题目
【单选题】 以下程序的输出结果是(  )。#include stdio.h void main( ){ int a,b;for(a=1,b=1;aa++){ if (b=10) break;if (b%5==1) { b+=5; continue; } }printf(%d\n }
①  101
②  6
③  4
④  3
【单选题】 以下程序运行后,a的值是()。main(){inta,b;for(a=1,b=1;aa++){if(b=20)break;if(b%3==1){b+=3;continue;}b-=5;}}
①  101
②  100
③  8
④  7
【单选题】 下列程序执行后的输出结果是________. #include stdio.h void main( ) { int a=5,b=60,c; if (ab) {c=a*b;printf(%d*%d=%d\n,b,a,c);} else {c=b/a;printf(%d/%d=%d\n,b,a,c);} }
①  60/5=12
②  300
③  60*5=300
④  12
【单选题】 下列程序执行后的输出结果是_______.#include stdio.h void main( ) { int a=5,b=60,c; if (ab) {c=a*b; printf(%d*%d=%d\n,b,a,c);} else {c=b/a; printf(%d/%d=%d\n,b,a,c);} }
①  60/5=12
②  300
③  60*5=300
④  12
【单选题】 以下程序运行后的输出结果是( ) main() { int a=1,b=2; a=a+b; b=a-b; a=a-b; printf(%d,%d\n,a,B.; }
①  1,2
②  1,1
③  2,2
④  2,1
【单选题】 有以下程序#includestdio.hmain(){ int a=1,b=0;if(--a) else if(a==0) b+=2;else b+=3;printf(“%d\n”,b); }程序运行后的输出结果是(  )。
①  0
②  1
③  2
④  3
【单选题】 有以下程序#includestdio.hmain(){ int a=1,b=0;if(--a) else if(a==0) b+=2;else b+=3;printf(“%d\n”,b); }程序运行后的输出结果是。
①  0
②  1
③  2
④  3
【单选题】 以下程序的输出结果是() int a, b; void fun( ) { a=100; b=200; } main( ) { int a=100, b=100; fun( ); printf(%d%d \n, a,b); }
①  100200
②  100100
③  200100
④  200200
【单选题】 下述程序的运行结果( )。 #includevoid main() { int x=1,a=0,b=0; switch(x) { case 0:b++; case 1:a++; case 2:a++;b++; } printf(a=%d,b=%d\n,a,b); } case 1:a++; case 2:a++;b++; } printf(a=%d,b=%d\n,a,b); }
①  a=1,b=1
②  a=2 ,b=1
③  a=2,b=2
④  a=3,b=3
【单选题】 下列程序执行后的输出结果是 #includevoid main( ) { int a=5,b=60,c; if (ab) {c=a*b;printf(%d*%d=%d\n,b,a,c);} else {c=b/a;printf(%d/%d=%d\n,b,a,c);} }
①  60/5=12
②  300
③  60*5=300
④  12
随机题目
【单选题】 What a rainy summer we’ve had! --Yes, there only three sunny weekends the whole summer.
①  have been
②  are
③  had been
④  has been
【单选题】 James plans to __________ offers from other companies before making a decision.
①  explode
②  expand
③  expose
④  explore
【单选题】 This record will help your safety officer ----what the problem is
①  bring up
②  put on
③  find out
④  take in
【单选题】 Although Mary is satisfied with her success, she wonders __________ will happen to he private life.
①  how
②  who
③  what
④  that
【单选题】 - Excuse me, is this the right direction for the school?
①  Well, no, you’re going in the wrong direction
②  No, don’t ask me
③  No, I don’t know
④  Don’t go this way
【单选题】 If the building project __________ by the end of this month is delayed, the construction company will be fine@@
①  being completed
②  is completed
③  to be completed
④  completed
【单选题】 Between 1974 and 1997, the number of overseas vistors expanded_______27%.
①  by
②  for
③  to
④  in
【单选题】 That man alone over there – who is he?
①  He is a student
②  He is Doctor Took
③  A driver, I suppose
④  He’s drunk
【单选题】 Monday Tuesday is OK. I will be free then.
①  Either;or
②  Neither;nor
③  So; that
④  Both; and
【单选题】 Jean did not have time to go to the concert last night because she was busy __________ for her examination.
①  to prepare
②  to be prepared
③  preparing
④  being prepared