• 2022-05-31 问题

    已知程序如下,若X=10, Y=20, Z=30,该程序执行完成后,X的值为( )。1234567891011X = Z + Yif Y &#91; Z: X = X - Yelse: X = X - ZX = X - Yif X < Z: X = Y + 20X = X - Zif X &#93; Y: X = X - Y A: 10 B: 20 C: 30 D: 40

    已知程序如下,若X=10, Y=20, Z=30,该程序执行完成后,X的值为( )。1234567891011X = Z + Yif Y &#91; Z: X = X - Yelse: X = X - ZX = X - Yif X < Z: X = Y + 20X = X - Zif X &#93; Y: X = X - Y A: 10 B: 20 C: 30 D: 40

  • 1