万能百科  > 计算机   > 

[单项选择题] 给出下列代码片段: if(x>0){System.out.println("first");} else if(x>-3){System.o

2021-07-20   

[单项选择题] 给出下列代码片段: if(x>0){System.out.println("first");} else if(x>-3){System.out.println("second");} else{System.out.println("third");} 当x处于( )范围时打印字符串"second"。

A.x>0

B.x>-3

C.-3<x<=0

D.x<=-3

正确答案:

C

词条内容仅供参考,如果您需要解决具体问题
(尤其在法律、医学等领域),建议您咨询相关领域专业人士。

标签