Question: Question 5: 10 Marks Write a program that display Leap year. In main () function take an input from user. Write a function that returns

 Question 5: 10 Marks Write a program that display Leap year.

Question 5: 10 Marks Write a program that display Leap year. In main () function take an input from user. Write a function that returns true if and only if the unsigned int Y represents a leap-year. There are two rules for determining leap years (Y is a century-year if it is evenly divisible by 100): Rule 1: If Y is a century-year, then Y is a leap-year just if it is evenly divisible by 400. For example, century-years 1700, 1900, 1800, and 3400 are not leap-years since they are not divisible by 400. But the century-years 1600, 2000, and 2400 are leap years because they are evenly divisible by 400. Rule 2: If Y is not a century-year, then it's a leap year if it's evenly divisible by 4. Note: Use pointers and switch statement in program

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock 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 Databases Questions!