Write a Leap Year Program in C to check whether the year is Leap Year or Not, using IF-ELSE Statements. The user must enter the Year and Program should Prompt the message "The Entered Year is Leap Year or Not". Leap years have total 366 numbers of days and a February 29. If we need to find which year is Leap Year or not.
Leap Year Examples:
- 1992: Leap Year
- 2002: Not a Leap Year
- 2016: Leap Year
- 2100: Not a Leap Year
You can modify this code to find the next or previous Leap Year if the User Entered the current year or you can also find the list of all the Leap Years in a Century
Output:
Enter A Year: 2200
2200 Is Not a Leap Year.
need an explanation for this answer? contact us directly to get an explanation for this answer