下列程序的运行结果是( )。 Publicclasssun { Publicstaticvoidmain(Stringargs[]) { intx=4,y=0; if(Math.pow(x,2)=16) y=X; if(Math.pow(x,2)<15) y=1/x if(Math.pow(x,2)>15) y=(int)Math.pow(x92)+1; system,out.println(y); } }A.4B.17C.18D.0.25

下列程序的运行结果是( )。 Publicclasssun { Publicstaticvoidmain(Stringargs[]) { intx=4,y=0; if(Math.pow(x,2)=16) y=X; if(Math.pow(x,2)<15) y=1/x if(Math.pow(x,2)>15) y=(int)Math.pow(x92)+1; system,out.println(y); } }

A.4

B.17

C.18

D.0.25


相关考题:

有如下程序 public class Sun { public static void main(String args[ ]) { int x=0; int n=0; while(x50) { x=(x+2)*(x+3); n=n+1; } System.out.println(n+"和"+x); } } 上述程序的运行结果是( )。A.1和0B.2和72C.3和50D.4和168

有如下程序 public class Sun { public static void main (String args[ ]) { int x=0; int n=0; while (x<50) { x=(x+2)*(x+3); n=n+1; System.out.println (n+"和"+x); 上述程序的运行结果是( )。A.1和0B.2和72C.3和50D.4和168

下列程序的运行结果是( )。 public class Sun { public static void main(String args[ ]) { int number,digits; number=53; if(number<10) digits=1; else if(number<100) digits=2; else digits=3; System.out.println(digits); } }A.1B.2C.3D.0

设有如下程序: public class Sun { public static void main(String args[ ]) { int x,y; x=4; y=0; if(Math.pow(x,2)==16) y=x; if(Math.pow(x,2)15) y=1/x; if(Math.pow(x,2)>15) y=(int)Math.pow(x,2)+1; System.out.println(y); } } 程序的运行结果是( )。A.4B.17C.18D.0.25

有如下程序 public class Sun { public static void main(String args[ ]) { int a=2,b=1,c=2; if(a<B) if(b<0) if(c<0) c=0; else C++; System.out.println(C) ; } } 上述程序的运行结果是( )。A.0B.1C.2D.3

下列程序的运行结果是( )。 Public class sun { Public static void main(String args[]) { int x=4,y=0; if(Math.pow(X,2)= =16) y—x ; if(Math.pow(X,2)15) y—l/x; if(Math.pow(X,2)15) y=(int)Math.pow(X,2)+1; system.out.println(y); } }A.4B.17C.18D.0.25

有如下程序 public class Sun { public static void main (String args[ ]) { int a=2, b=1, c=2; if (a<B) if (b<0) if (c<0) c=0; else c++; System. out.println(C) ; } } 上述程序的运行结果是( )。A.0B.1C.2D.3

设有如下程序: public class Sun { public static void main(String args[ ]) { int x, y; x-4; y=0; if(Math.pow(x,2)==16) y=x; if(Math.pow(x,2)<15) y=1/x; if(Math.pow(x,2)>15) y=(int)Math.pow(x,2)+1; System.out.println(y); } } 程序的运行结果是( )。A.4B.17C.18D.0.25

下列程序的运行结果是( )。 public class Sun { public static void main(String args[ ]) { int number,digits; number=53; if(number<10) digits=1; else if(number<100) digits=2; else diglts=3; System.out.println(digits); } }A.1B.2C.3D.0