下面程序段的输出结果是
public class Test
public static void main(Stringargs[])
int x,y;
x=(int)Math.sqrt(5)/2+(int)Math.random( )*5/2;
y=(int)Math.sqrt(3)/2+(ht)Math.random( )*3/2;
if(x>y)
System.out.println(”x>y”);
else if(x=y)
System.out.println(”x=y”);
else
System.out.Println(”x<y”);

题库:计算机等级考试 类型:最佳选择题 时间:2017-07-03 15:04:50 免费下载:《单项选择》Word试卷

下面程序段的输出结果是
public class Test
public static void main(Stringargs[])
int x,y;
x=(int)Math.sqrt(5)/2+(int)Math.random( )*5/2;
y=(int)Math.sqrt(3)/2+(ht)Math.random( )*3/2;
if(x>y)
System.out.println(”x>y”);
else if(x=y)
System.out.println(”x=y”);
else
System.out.Println(”x<y”);


A.x>y
B.x=y
C.x<y
D.编译错误

下面程序段的输出结果是    public class Test     public static void main(Stringargs[])     i

本题关键词:输出结果,输出段梗阻,空肠输出段梗,面试程序,竣工结算程序,结果,肝糖输出,输出浓度,程序,结果均;

微信扫码获取答案解析
下载APP查看答案解析