Created
February 3, 2019 21:37
-
-
Save PierraKimathi-zz/4818e63a0454dda27237e3a63b629018 to your computer and use it in GitHub Desktop.
determining if a year is leap or not
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
bool IsLeapYear(int year) | |
{ | |
return (!(year % 400) || (!(year % 4) && year % 100)); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment