下列程序的运行结果是( )。 Public class sun Publi
题型:单项选择题
问题:
下列程序的运行结果是( )。
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=1/x;
if(Math.pow(x,2)>15)
y=(int)Math.pow(x,2)+1;
system.out.println(y);
A.4
B.17
C.18
D.0.25