Question PSC-OPS-0066
HardWhat will be printed by the following pseudocode?
Integer x = 5
Integer y = x > 3 ? x * 2 : x / 2
Integer z = (x mod 2 == 0) ? x : x + 1
Print y + z
- A.
15
- B.
12
- C.
Sign up free to see the answer and a step-by-step explanation.