Leap Year (Conditionals)
Read a year and print leap or common. A year is leap if divisible by 4, except centuries, which must be divisible by 400.
Input: One integer year.
Output: leap or common.
Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.
Hint
- 2000 is leap, 1900 is not.