Leap Year Program in C - C Program to Check Leap Year
Learn C - C tutorial - c program to check leap year - C examples - C programs
C Program to Check Leap Year
- A year that has 366 days is called a leap year.
- A year can be checked whether it is a leap year or not dividing the year by 4, 100 and 400.
- If a number is divisible by 4 but not by 100 then, it is a leap year.
- Also, if a number is divisible by 4, 100 and 400 then it is a leap year. Otherwise the year is not a leap year.