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

 

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

1 Expert Approved Answer
Step: 1 Unlock

Im glad I could help you with the problem Your ans... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!