问题
单项选择题
下列程序中的循环体将会被执行______。 public class ex20 { public static void main(String[] args) { int x=3; do{System.out.println("Hello!"); }while(x>=0); } }
A.2次
B.1次
C.3次
D.4次
答案
参考答案:D
下列程序中的循环体将会被执行______。 public class ex20 { public static void main(String[] args) { int x=3; do{System.out.println("Hello!"); }while(x>=0); } }
A.2次
B.1次
C.3次
D.4次
参考答案:D