# C program to find Leap year - c exercise - smartduniya

To verify that the year is Leap Year or not in C programming , a leap year has 366 days and the extra day is in February (February 29).
Condition or Reason for a Leap Year: A year that is divisible by four is a year except one,
a year that is divisible by 100, however, a year is divisible by 400(it is only for century year like 1900, 1600.
Etc.), but this year is a leap year. Leap year. Generally we know that leap year comes 4 year after after . In this post we will learn ,
how to check any year , that the year leap year or not by c programming .
We all know that 200,2004. Are leap year and 2001, 2003 are not leap year .

Suppose a problem is

## Any year input through the keyboard . write a program to determine whether the year is a leap year or not.

To solve this problem ,
we take a year and divide by 400,100 & 4 step by step .
And We get The year leap year or not .
Let's Go to the code :

Note :Click on the button to copy the text from the text field. Try to paste the text (e.g. ctrl+v) afterwards in a different window, to see the effect.

write the above code or copy this code . save this with '.c ' extension.In this screen User have to input a number to check it even or odd number . Then press Enter to show even / odd.

# Is 1900 Leap year or Not ?

ex. User give input 1900, to Calculate leapyear or not ?
=> we know that it is not leapyear.

# Is 2000 Leap year or Not ?

ex. User give input 2000, to Calculate leapyear or not ?
=> we know that it is leapyear.

## OutPut :

Don’t forget to Subscribe our Blog to get update. Just put your email on subscribe box and hit subscribe button , next verify your email , it will be done.

You will get every single post when we will upload in Smartduniya.

Also Learn