单选题
有以下程序
#include <stdio.h>
main()
{ int x;
scanf("%d",&x);
if(x<=3);else
if(x!=10) printf("%d/n",x);
}
程序运行时,输入的值在哪个范围才会有输出结果______。
A、
大于3且不等于10的整数
B、
不等于10的整数
C、
大于3或等于10的整数
D、
小于3的整数
【正确答案】
A
【答案解析】
[解析] 大于3执行else语句,不等于10,就会输出x的值,所以选择A。
提交答案
关闭