intx=0step1for(;x11;x++){if(x==6){x=8breakstep1;}if(x==3){x++continue}System.out.print(x+”);}结果为:() A.012B.0125C.01245D.01258910E.0125891011
intx=0step1for(;x<11;x++){if(x==6){x=8breakstep1;}if(x==3){x++continue}System.out.print(x+”);}结果为:()
A.012
B.0125
C.01245
D.01258910
E.0125891011
相关考题:
以下程序的输出结果是main(){ int x=1,y=3;printf("%d,",x++);{ int x=0;x+=y*2;printf("%d,%d, ",x,y);}printf("%d,%d\n",x,y);}A.1,6,3,1,3B.1,6,3,6,3C.1,6,3,2,3D.1,7,3,2,3
以下程序的输出结果是 include void main( ) {int x=1,y=3; cout 以下程序的输出结果是#include<iostream.h>void main( ){int x=1,y=3;cout < < x++ < < ",";{int x=0;x+=y * 2;cout < < x < <"," < < y < <",";}cout < < x < < "," < < y;}A.1,6,3,1,3B.1,6,3,6,3C.1,6,3,2,3D.1,7,3,2,3
以下程序的输出结果是includevoid main( ){int x=1,y=3;cout 以下程序的输出结果是 #include<iostream.h> void main( ) {int x=1,y=3; cout << x++ << ","; {int x=0;x+=y*2; cout <<X <<"," <<y << ","; } cout << x <<","<< y; }A.1,6,3,1,3B.1,6,3,6,3C.1,6,3,2,3D.1,7,3,2,3
以下程序的输出结果是includevoid main(){int x=1,y=3; cout 以下程序的输出结果是 #include<iostream.h> void main() { int x=1,y=3; cout << x++ << " , "; { int x=0;X+=y*2; cout<<x<<" ,"<<y<<" ;"; } cout<<x<<" ,"<<y; }A.1,6,3,1,3B.1,6,3,6,3C.1,6,3,2,3D.1,7,3,2,3
设有如下类:class MyPoint {void myMethod() {int x, y;x = 5; y = 3;System.out.print( " ( " + x + ", " + y + " ) " );switchCoords( x, y );System.out.print( " ( " + x + ", " + y + " ) " );}void switchCoords( int x, int y ) {int temp;temp = x;x = y;y = temp;System.out.print( " ( " + x + ", " + y + " ) " );}}如果执行myMethod()方法,则输出结果为?A. (5, 3、(5, 3、(5, 3、B. (5, 3、(3, 5、(3, 5、C. (5, 3、(3, 5、(5, 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); } }
下列程序输出结果是什么? 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); } }
求标有/*******/语句的执行次数为()次。 int x=10; while(x++<20) x+=2; /********/A.10B.11C.4D.3