更多"下列程序段的输出结果是 【15】 。 cout << fixed<<"的相关试题:
[填空题]下列程序段的输出结果是 。
cout < < fixed < < 509.123456789 < < endl;
[填空题]下列程序段的输出结果是 【15】 。
cout << fixed<<509.123456789<<end1;
[填空题]下列程序段的输出结果是【 】。
cout<<fixed<<509.123456789<<endl;
[填空题]下列程序段的输出结果是 【15】 。
cout<<fixed<<509.123456789<<endl;
[填空题]下列程序段的输出结果是 【15】 。 cout<<fixed<<509.123456789<<endl;
[单项选择]下面程序段的输出结果是
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. 编译错误
[单项选择]下面程序段的输出结果是( )。
publicclassTest
publicstaticvoidmain(Stringargs[])
intx,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.println9"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. 编译错误
[单项选择]下面程序段的输出结果是
public class Test
public static void main (String args[])
int[] a=new int[11];
int[] p=new int [4];
int k=5;
for(int i=1;i<=10;i++)
a[i]=i;
for(int i=1;i<=3;i++)
p[i]=a[i*i];
for(int i=1;i<=3;i++)
k=k+p[i]*2;
System.out.println(k);
A. 17
B. 31
C. 33
D. 35