Skip to content

This kata is about calculating whether a year is a leap year.

Notifications You must be signed in to change notification settings

Wolfremium13/kata-leap-year

Repository files navigation

Kata leap year

Description

This kata is about calculating whether a year is a leap year.

Instructions

Write a function that returns true or false depending on whether its input integer is a leap year or not.

A leap year is defined as one that is divisible by 4, but is not otherwise divisible by 100 unless it is also divisible by 400.

For example, 2001 is a typical common year and 1996 is a typical leap year, whereas 1900 is an atypical common year and 2000 is an atypical leap year.

About

This kata is about calculating whether a year is a leap year.

Topics

Resources

Stars

Watchers

Forks

Languages