Question PSC-COND-0042
MediumWhat will be printed by the following pseudocode?
Integer y = 1900
if ((y mod 4 == 0 and y mod 100 != 0) or y mod 400 == 0)
Print "leap"
else
Print "common"
end if
- A.
leap
- B.
1900
- C.
Sign up free to see the answer and a step-by-step explanation.