C Program to Check Leap Year

      No Comments on C Program to Check Leap Year

To check leap year in c programming you need to obey these 3 conditions.

  1. A year would be considered as a leap year if it is divisible by 400.
  2. If the year is not divisible by 400 then try it divide it by 100, if it divides by 100 then it’s not a leap year too.
  3. After checking it by both the above conditions, try to divide it by 4, if it divides by 4 then it’s surely a leap year.

Also Read:

C Program to Find Largest Number

C Program to Check / Find Even or Odd Number

C Program to Find Largest Number

C Program to Swap Two Numbers 

Various Method to Check Leap Year in C

Method #1Method #2Method #3
Output 1:

C Program to Check Leap Year

Output 2:

C Program to Check Leap Year
Output 1:

C Program to Check Leap Year
C Program to Check Leap Year

C program to check leap year using function

Method #1

C program to check leap year using logical operators

Method #1Method #2

Leave a Reply

Your email address will not be published. Required fields are marked *