【简答题】【消耗次数:1】
有以下程序#includestdio.hmain(){ int x;scanf(%d,if(x15) printf(%d,x-5);if(x10) printf(%dif(x5) printf(%d\n,x+5); }若程序运行时从键盘输入12回车,则输出结果为[填空1]。
参考答案:
复制
纠错
相关题目
【简答题】 有以下程序#includestdio.hmain(){ int x;scanf(%d,if(x15) printf(%d,x-5);if(x10) printf(%dif(x5) printf(%d\n,x+5); }若程序运行时从键盘输入12回车,则输出结果为[填空1]。
【简答题】 有以下程序#includestdio.hmain(){ int x;scanf(%d,if(x15) printf(%d,x-5);if(x10) printf(%dif(x5) printf(%d\n,x+5); }若程序运行时从键盘输入7回车,则输出结果为[填空1]。
【单选题】 两次运行下面的程序,如果从键盘上分别输入1和10,则输出结果是。main( ){ int x; scanf(“%d”, if(x++5) printf(“%d”,x); else printf(“%d\n”,x++);}
①  1和2
②  10和11
③  1和10
④  2和11
【单选题】 若运行时给变量x输入12,则以下程序的运行结果是( )。 Main() {int scanf(%d, y=x12?x+10:x-12; printf(%d\n }
①  0
②  22
③  12
④  10
【单选题】 运行下面程序时,若从键盘输入3,5,则程序的输出结果是________. #include stdio.h void main( ) { int x,y; scanf(%d,%d,x, if (x==y) printf(x==y else if (xy) printf(xy else printf(xy }
①  35
②  53
③  xy
④  xy
【单选题】 有以下程序#include stdio.hmain(){ int a;scanf(%d ,if(a++9) printf(%d\nelse printf(%d\n }程序运行时从键盘输入9回车,则输出的结果是。
①  10
②  11
③  9
④  8
【单选题】 两次运行下面的程序,如果从键盘上分别输入4和6,则输出结果是。main( ){ int x; scanf(“%d”, if(x++5) printf(“%d”,x); else printf(“%d\n”,x++);}
①  7和5
②  6和3
③  7和4
④  6和4
【单选题】 两次运行下面的程序,如果从键盘上分别输入6和4,则输出结果是。main( ){ int x; scanf(“%d”, if(x++5) printf(“%d”,x); else printf(“%d\n”,x--);}
①  7和5
②  6和3
③  7和4
④  6和4
【单选题】 若运行时给变量x输入12,则以下程序的运行结果是:main){intx,y;scanf%d,y=x>12?x+10:x12;printf%d\n,y)}
①  0
②  22
③  120)10
【单选题】 运行下面程序时,若从键盘输入3,则程序的输出结果是_______.#include stdio.h(一般) void main( ){ int x; scanf(%d,if (!x)printf(x等于零 elseprintf(x不等于零}
①  x等于零
②  x不等于零
③  3等于零
④  3不等于零
随机题目
【单选题】 Its free, so you neednt ____________ money ____________ me.
①  give...to
②  pay...for
③  borrow...from
④  cost...for
【单选题】 He___________ score 100 on this coming test.
①  aims to
②  aim to
③  have to
④  adds to
【单选题】 — Could you put me through to room 1032?—_________________.
①  No, you couldnt.
②  Ok, one moment please.
③  No, I cant do it.
④  Yes. Why do you call him?
【单选题】 It sounds ridiculous if hotels _____________ guests extra for Wi-Fi service.
①  pay
②  take
③  spend
④  charge
【单选题】 —When will you arrive, madam?— .
①  Thank you very much.
②  Four nights.
③  On May the 4th.
④  I dont know.
【单选题】 They are not only teachers __________ our friends
①  but for
②  but also
③  however
④  whoever
【单选题】 —Hello there, what can I do for you, sir?—_____________________.
①  I can do it myself.
②  No, youre welcome.
③  I would like to buy a pair of glasses.
④  Yes, thank you.
【单选题】 __________ we may say, he will not not believe us.
①  Whatever
②  Whenever
③  Wherever
④  Whoever
【单选题】 He is writing his stories ___________ Monday___________Friday.
①  both...and
②  either...or
③  from...to
④  between...and
【单选题】 — Could you give me a discount?— _____________________.
①  No, thanks.
②  No, I cant.
③  Yes, I cant.
④  Yes. I can take 15% off the price.