Question: in C Create a function: int IsLeapYear(int aYear ); In that function, determine if the given year is a leap year using the following rules:
in C
Create a function: int IsLeapYear(int aYear ); In that function, determine if the given year is a leap year using the following rules: There were no leap years before 1752. If the year divides by 400 then it is a leap year. All other years that divide by 100 are not leap years. All other years that divide by four are leap years. For example, 1800,1900 were not leap years but 2000 is; 1904, 1908,...,1996 were leap years. Print out the year and if it is or is not a leap year. Return 1 from the function if the year is a leap year, 0 if not. Test your function with 10 different years
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
