单项选择题

class WhileTests {
public static void main(String [] args) { 
int x = 5; 
while (++x 〈 3) { 
--x; 
} 
System.out.println("x = " + x); 
} 
}
结果是什么?()

A.x = 2
B.x = 5
C.x = 6
D.编译失败

相关考题