您所在的当前位置: 计算机等级考试题库   >  
JAVA题库  
  >   [单项选择题] 下面程序段的输出结果是 public class Test { public static void main(String args []){int a,b;for(a=1,b=1;a<100;a++){ if(b>=10)break; if(b%2==1){ b+=2; continue; }}System.out.println(A) ; } } A.5 B.6 C.7 D.101
问题:
发布时间:2022-07-01

[单项选择题] 下面程序段的输出结果是 public class Test { public static void main(String args []){int a,b;for(a=1,b=1;a<100;a++){ if(b>=10)break; if(b%2==1){ b+=2; continue; }}System.out.println(A) ; } }


A.5
B.6
C.7
D.101

可能感兴趣的题目: