Question PSC-COND-0008
MediumWhat will be the output of the following pseudocode?
Integer x = 10
if (x > 5)
x = x + 5
else
x = x - 5
end if
if (x > 12)
x = x * 2
end if
Print x
- A.
30
- B.
20
- C.
Sign up free to see the answer and a step-by-step explanation.