Posts

Showing posts with the label Basic c programs.

C Program to check leap year

Image
A year will be leap year:- (i) If it is divisible by 400 (ii) If it is divisible by 4 but not by 100. If a year is divisible by 4 and by 100 it is not leap year unless it is divisible by 400. For example 1900 is not a leap year but 1904 is a leap year.