Question PSC-COND-0004
EasyWhat will be the output of the following pseudocode?
Integer x = 5, y = 10
if (x > 3 AND y < 5)
Print 1
else
Print 0
end if
- A.
0
- B.
10
- C.
Show answer and explanation
Answer: A
x > 3 is true but y < 5 is false, so the AND is false and 0 is printed.