Question PSC-COND-0062
HardWhat will be the output of the following pseudocode?
Integer y = 2100
String r
if (y mod 400 == 0)
r = "leap"
else if (y mod 100 == 0)
r = "common"
else if (y mod 4 == 0)
r = "leap"
else
r = "common"
end if
Print r
- A.
leap
- B.
error
- C.
Sign up free to see the answer and a step-by-step explanation.