x

C program to find leap year

C program to find leap year:

What is leap year?


Leap year is a year which has 366 days. Leap year occurs once every 4 years.

How to find whether a year is leap year or not using a C program?

* A year which can be exactly divisable by 4 except century years is called leap year.


* Century year means the year which ends with 00. Century year also can be a leap year if it is exactly divisable by 400.

C program to find whether a given year is leap year or not:

 



Like it? Please Spread the word!