• 2022-06-14
    下面程序段的运行结果为( ) int x=5,y=10; if(x==y) System.out.println(x); else System.out.println(y);
    A: x==y
    B: 5
    C: 10
    D: x!=y
  • C
    本题目来自[网课答案]本页地址:https://www.wkda.cn/ask/zjzjzypzoxezzzo.html

    内容

    • 0

      下面程序段执行结果为( )。 x = 5 : y = -6 If not x > 0 Then x = y – 3 Else y = x + 3 End If Print x - y; y - x

    • 1

      哪个是如下代码的输出结果:(). double x = 5.5; int y = (int)x; System.out.println("x is " + x + " and y is " + y); A: x is 5 and y is 6 B: x is 6.0 and y is 6.0 C: x is 6 and y is 6 D: x is 5.5 and y is 5

    • 2

      设x=2以及y=3,下面代码的输出结果是。if (x >; 2)if(y >; 2){int z = x + y;System.out.println("z is " + z) ;}else{System.out.println("x is " + x) ;} A: x is 2 B: z is 5 C: x is 5 D: 无输出

    • 3

      以下代码段执行后的输出结果为:  int  x=3; int  y =10 ;  System.out.println(y%x);

    • 4

      请写出下列程序的运行结果: int x=5,y,z; [br][/br] y=++x; [br][/br] z=x++; [br][/br] System.out.println(x); [br][/br] System.out.println(y); [br][/br] System.out.println(z);