ⓘ This web page is about the old AlgoSim 2 software. Perhaps you are looking for the new Algosim 3 application?
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