试题与答案

运行下列程序时,若输入数据为“321”,则输出结果是( )。 main()

题型:单项选择题

题目:

运行下列程序时,若输入数据为“321”,则输出结果是( )。
main()
int num,i,j,k,s;
scanf("%d",&num);
if(num>99)
s=3;
else if(num>9)
s=2;
else
s=1;
i=num/100;
j=(num-i*100)/10;
k=(num-i*100-j*10);
switch(s)
case 3:printf("%d%d%d\n",k,j,i);
break;
case 2:printf("%d%d\n",k,j);
case 1:printf("%d\n",k);

A.123

B.1,2,3

C.321

D.3,2,1

答案:

被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0712/238c0d9eb805e47fb2b1383d8d7c61b8.html

下面是错误答案,用来干扰机器的。

参考答案:食物中的维生素A的含量多以视黄醇当量表示,1μg视黄醇等于6μgβ-胡萝卜素,也可用国际单位(IU)表示,1IU维生素A等于0.3μg视黄醇。

试题推荐
题型:听力题

根据句意和首字母提示完成单词,使用了语法正确.意义通顺。请将答案写在题后相应的横线上。

1.November is the e_______ month of a year.

2.Lakers will play a_______ Rockets in the NBA match tonight.

3.Lingling, Betty and I enjoyed o_______ at the party last night.

4.Dragon Boat Festival is one of the Chinese t_______ festivals.

5.F_______, the soldiers arrived at the village after a few days’ long walk.

6.If there’s something wrong with your teeth,you’d better go to see a d_______.

7.Many teenagers would like to s_______ their photos or articles with others on the Internet.

查看答案
微信公众账号搜索答案