โœ๏ธ

Leap year

Hard๐Ÿท๏ธ Conditions๐Ÿ“‚ Decision Making
๐Ÿงฉ The problem

TAKE a YEAR. A year is a leap year if it is divisible by 4, except years divisible by 100 โ€” unless they are also divisible by 400. DISPLAY “Leap” or “Not leap”.

Examples

  • Input: 2024 โ†’ Leap
  • Input: 1900 โ†’ Not leap
  • Input: 2000 โ†’ Leap

โœ๏ธ Write your pseudocode

Press Run to watch it step by step, and Run tests to check it against every test case.

โ† All practice problems