AlgoSim
Homepage | Screenshots | Gallery of Visualisation | User's Guide | Function Reference | Download | FAQ | Support | Bugs and Solutions | Donate

Reference: isLeapYear

isLeapYear(year) returns true if year is a leap year, and false otherwise.

Per definition,

isLeapYear(year) = (year mod 4 = 0) ∧ ((year mod 100 ≠ 0) ∨ (year mod 400 = 0))

Example:

isLeapYear(2010) = false