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