Checkpoint: leap-year logic
Challenge on lesson: Checkpoint: operator logic
CHALLENGE
Difficulty: beginner+25 XP
Implement boolean isLeap(int year): true when year is divisible by 4, EXCEPT century years (divisible by 100) unless also divisible by 400. So 2024 โ true, 1900 โ false, 2000 โ true, 2023 โ false.
Press Submit to check your solution.
Back to lesson: Checkpoint: operator logic