• 2021-04-14
    执行下列命令后的输出结果是()。
    >>ans=10;
    >>5;
    >>ans+10
  • 15

    内容

    • 0

      What will be the value of ans after the following code has been executed?执行以下代码后,ans的值是什么?int x = 90,y = 55,ans = 10;if ( x == y);ans *= 2; A: 10 B: 145 C: 20 D: No value, there is a syntax error 无值,语法错误

    • 1

      命令“26*3”执行后,显示的结果是ans的值为26*3

    • 2

      What will be the values of ans, x, and y after the following statements are executed? int ans = 35, x = 50, y =50; if ( x >= y) { ans = x + 10; x -=y; } else { ans = y + 10; y += x; }

    • 3

      What will be the value of ans after the following code has been executed? int x = 90, y = 55, ans = 10; if ( x == y); ans *= 2;

    • 4

      执行rand(2,3),下列( )是不可能结果 A: ans = <br> 0.8147 0.1270 0.6324 0.9058 0.9134 0.0975 B: ans = <br> 1.4090 0.6715 0.7172 1.4172 -1.2075 1.6302 C: ans = <br> 0.2785 0.9575 0.1576 0.5469 0.9649 0.9706 D: ans = <br> 0.9572 0.8003 0.4218 0.4854 0.1419 0.9157