网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
intx=0;inty10;do{y--;++x;}while(x<5);System.out.print(x+,+y);Whatistheresult?()

A.5,6

B.5,5

C.6,5

D.6,6


参考答案

更多 “ intx=0;inty10;do{y--;++x;}while(x5);System.out.print(x+,+y);Whatistheresult?() A.5,6B.5,5C.6,5D.6,6 ” 相关考题
考题 int x=0;int y=10;do{l3.y--;++x;}while(x5);System.out.print(x+,+y);What is the result?() A.5,6B.5,5C.6,5D.6,6

考题 下列程序的输出结果中 x= [填空1] ? public class E { public static void main (String []args) { int x = 1,y = 6; while (y-->0) { x--;} System.out.print("x="+x); }}

考题 若有循环: int x=5,y=20; do { y-=x; x+=2; }while(x<y); 则循环体将被执行____次。A.2B.1C.0D.3

考题 4、以下循环体将被执行()次 int x=5,y =20; do{ y-=x; x+=2; } while(x<y);A.0B.1C.2D.3

考题 5、若有循环: int x=5,y=20; do { y-=x; x+=2; }while(x<y); 则循环体将被执行____次。A.2B.1C.0D.3

考题 28、下列程序输出结果是什么? public class E { public static void main(String[] args) { int x=1,y=6; while(y-->0) { x--; } System.out.print("x="+x+",y="+y); } }

考题 13、int x=5, y=20; do{ y -= x; x += 2; }while(x<y) 以上循环体执行()次A.0B.1C.2D.3

考题 若有循环: int x=5,y=20; do { y-=x; x+=2; }while(xA、2A.1B.0C.3

考题 下列程序输出结果是什么? public class E { public static void main(String[] args) { int x=1,y=6; while(y-->0) { x--; } System.out.print("x="+x+",y="+y); } }