Skip to content

Instantly share code, notes, and snippets.

@jmkim
Last active April 11, 2016 13:46
Show Gist options
  • Save jmkim/f717390875ba2187ac31 to your computer and use it in GitHub Desktop.
Save jmkim/f717390875ba2187ac31 to your computer and use it in GitHub Desktop.
int is_leap_year(int year)
{
if(year % 400 == 0 || year % 4 == 0 && year % 100 != 0) return 1;
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment