Practice · 1 of 4
Leap year with boundaries
CHALLENGE
Difficulty: beginner+25 XP
Implement isLeap(int year): divisible by 4 is a leap year, EXCEPT century years not divisible by 400. Write the two rules as nested conditions.
Press Submit to check your solution.
Back to lesson: Practice: Testing and debugging reps