2 Purpose: Determine if a given year is a leap year
5 int yr The year to test
8 int 1 if the year is a leap year, 0 otherwise
10 int IsLeapYear(int yr)
12 if (yr % 4 == 0 && yr % 100 != 0 || yr % 400 == 0) {
13 return 1; // It is a leap year
15 return 0; // not a leap year