-->
当前位置:首页 > 题库

单选题:分析下列代码的运行结果是什么?

Luz5年前 (2021-05-10)题库2305
分析下列代码的运行结果是什么?

void looper(){

int x=0;
one:
while(x<20) {
two:
System.out.print(++x);
if(x>3)
break two;
}
}

@[A](2)

A. 编译错误
B. 0
C. 1
D. 2



A.编译错误
B.0
C.1
D.2


答案:A