Skip to content

Instantly share code, notes, and snippets.

@DrunkenAlcoholic
Created May 14, 2024 03:42
Show Gist options
  • Save DrunkenAlcoholic/0b4f447256c2e68f812b7c7b35d3b251 to your computer and use it in GitHub Desktop.
Save DrunkenAlcoholic/0b4f447256c2e68f812b7c7b35d3b251 to your computer and use it in GitHub Desktop.
Leap [Exercism - Nim]
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