【简答题】【消耗次数: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不等于零
随机题目
【单选题】 Do you mind if I join you?
①  I’m very happy to do so
②  Never mind
③  Please do
④  Oh, I can’t
【单选题】 Hi, Sam, I think you did a good jo@@
①  Thank you
②  Don’t mention it
③  Not at all
④  I did it quite badly
【单选题】 We are interested in the weather because it __________ us so directly --- what we wear, what we do, and even how we feel.
①  benefits
②  affects
③  guides
④  effects
【单选题】 If the whole program __________ beforehand, a great deal of time and money would have been lost.
①  was not planned
②  were not planned
③  would not be planned
④  had not been planned
【单选题】 She’s an only child, but they didn’t really __________ her.
①  hurt
②  damage
③  spoil
④  harm
【单选题】 I was stunned by the news, and my initial __________ was anger.
①  impression
②  reaction
③  comment
④  other
【单选题】 Do you mind telling me where you’re from?
①  Certainly. I’m from London
②  Sure. I was born in London
③  Not really, you can do it
④  Certainly not. I’m from London
【单选题】 It was not until she had arrived home __________ remembered her appointment with the doctor.
①  when she
②  that she
③  and she
④  she
【单选题】 If only he __________ what I tell him, but he won’t.
①  had done
②  would do
③  would have done
④  has done
【单选题】 I am very grateful to you for what you’ve given me and __________ you have done for me.
①  which
②  that
③  all what
④  all that