Question PSC-COND-0002
EasyWhat will be the output of the following pseudocode?
Integer n = 15
if (n mod 2 == 0)
Print "Even"
else
Print "Odd"
end if
- A.
Odd
- B.
Even
- C.
Show answer and explanation
Answer: A
15 mod 2 is 1, so the else branch prints 'Odd'.