Skip to content

Instantly share code, notes, and snippets.

@coderhs
Last active December 14, 2015 03:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coderhs/5018676 to your computer and use it in GitHub Desktop.
Save coderhs/5018676 to your computer and use it in GitHub Desktop.
def isLeapYear(yearVar)
if (yearVar % 4 == 0)
if (yearVar % 100 == 0)
if(yearVar % 400 == 0)
return true
end
return false
end
return true
end
return false
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment