下面程序段的输出结果是( )。
public class Test
public static void main(String args[])
int x,y
X=(int)Math.sqrt(5)/2+(int)Math.random( )*5/2;
y=(int)Math.sqrt(3)/2+(int)Math.random( )*3/2;
if(x>y)
System.out.println("x>y");
elseif(x==y)
System.out.println("x=y");
else
System.out.println("x<y");
题库:计算机等级考试
类型:最佳选择题
时间:2017-07-03 16:09:09
免费下载:《单项选择》Word试卷
下面程序段的输出结果是( )。
public class Test
public static void main(String args[])
int x,y
X=(int)Math.sqrt(5)/2+(int)Math.random( )*5/2;
y=(int)Math.sqrt(3)/2+(int)Math.random( )*3/2;
if(x>y)
System.out.println("x>y");
elseif(x==y)
System.out.println("x=y");
else
System.out.println("x<y");
A.x>y
B.x=y
C.x<y
D.编译错误
本题关键词:输出结果,输出段梗阻,空肠输出段梗,面试程序,竣工结算程序,结果,肝糖输出,输出浓度,程序,结果均;