Question PSC-COND-0077
HardWhat will be the output of the following pseudocode?
Integer x = 10
switch (x mod 4)
case 0: x = x + 1
case 1: x = x * 2
break
case 2: x = x - 3
case 3: x = x * 10
break
end switch
Print x
- A.
70
- B.
100
- C.
Sign up free to see the answer and a step-by-step explanation.