Given the following code: if (x>0) { System.out.println("first"); } else if (x>-3) { System.out.println("second"); } else { System.out.println("third"); } Which range of x value would print the string "second"?()
- A、 x > 0
- B、 x > -3
- C、 x <= -3
- D、 x <= 0 & x > -3
正确答案:D
答案解析:有
微信扫一扫手机做题