Question: Write a C program using a function called leap year in order to check if the year entered is a leap year or not.

Write a C program using a function called leap year in order to check if the year entered is a leap year or not. Your function called leap year will check if the year entered is a leap year or not and will print the appropriate message. Use the following condition to check wwwwwww wwwww wwww. whether year is leap year or not: if (year isnot divisible by4) then (itisacommonear) elseif (year isnotdivisibleby100) then (itisaleapyear) elseif (year isnotdivisibleby400) then (itisacommonyear) else (it is a leap year) Hint: Here is the function prototype: void leap year (int year) wwww
Step by Step Solution
There are 3 Steps involved in it
Im glad I could help you with the problem Your ans... View full answer
Get step-by-step solutions from verified subject matter experts
