题目内容:
下列代码中if(x>0){System.out.println("first");} else if(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
参考答案:
答案解析:
下列代码中if(x>0){System.out.println("first");} else if(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