Created
May 14, 2024 03:42
-
-
Save DrunkenAlcoholic/0b4f447256c2e68f812b7c7b35d3b251 to your computer and use it in GitHub Desktop.
Leap [Exercism - Nim]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proc isLeapYear*(year: int): bool = | |
if year mod 100 == 0: result = year mod 400 == 0 | |
else: result = year mod 4 == 0 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment