下列代码中if(x>0){System.out.println("first")
2024-07-28 178次 计算机二级 反馈错误 加入收藏 正确率 : 100%
题目内容:
[单选题]下列代码中 if(x>0){System.out.println("first");} elseif(x>-3){System.out.println("second");} else{System.out.println("third");} 要求打印字符串为"second"时,x的取值范围是( )。
A.x<=0并且x>-3
B.x>0
C.x>-3
D.x<=-3
本题链接: