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