Question PSC-COND-0009
MediumWhat will be the output of 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 "Not leap"
end if
- A.
1900
- B.
Leap
- C.
Sign up free to see the answer and a step-by-step explanation.