Practice · 2 of 2
Leap Year Rule
CHALLENGE
Difficulty: beginner+25 XP
Implement int is_leap(int year): divisible by 4, EXCEPT centuries not divisible by 400. One boolean expression; test data covers the tricky centuries.
Press Submit to check your solution.
Back to lesson: Practice: Logic Bench