【简答题】【消耗次数: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]。
参考答案:
复制
纠错
➡️如需代学继续教育,联系微信:yizhituziang

相关题目
【简答题】 有以下程序#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
【单选题】 两次运行下面的程序,如果从键盘上分别输入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
【单选题】 两次运行下面的程序,如果从键盘上分别输入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
随机题目
【单选题】 The old man returning home after eight years absence to find that all the neighbors he had known were no longer there. Is this a complete sentence?
①  Yes
②  No
【单选题】 Which sentence is correct?
①  Returning home from work, he saw supper waiting for him in the kitchen.
②  Returning home after work, supper was waiting for him in the kitchen.
【单选题】 A number of foreign scholars [] invited to contribute articles to the magazine.
①  is
②  are
【单选题】 How to operate this computer? Is this a complete sentence?
①  Yes
②  No
【单选题】 The man was forced to steal a loaf of bread who was hungry. Find any misplaced modifier in the sentence.
①  The
②  a loaf of
③  who was hungry
【单选题】 Pop music is such an important part of society [] it has even influenced our language.
①  as
②  that
③  which
④  where
【单选题】 The companies are working together to create [] they hope will be the best means of transport in the 21st century.
①  which
②  that
③  what
④  who
【单选题】 To succeed in our future goal, [] we students really need to do is to study as hard as possible.
①  that
②  how
③  what
④  why
【单选题】 The drivers are told to drive carefully on the radio. Find any misplaced modifier in the sentence.
①  on the radio
②  the
③  carefully
【单选题】 The trees stand nearly barren; their leaves lay on the ground. Identify the mistake in the sentence.
①  stand
②  barren
③  leaves
④  lay