Latest :

C Program To Check Whether A Year Is Leap Year Or Not | C Programs

C program to check whether a year is a leap year or not – In this article, we will talk about the way to check whether a year is a leap year or not.

Suitable examples and sample programs have also been added so that you can understand the whole thing very clearly. The compiler has also been added with which you can execute it yourself.

C Program To Check Whether A Year Is Leap Year Or Not

As you can see, a leap year is a year which has a total of 366 days. It has one day more than the usual of 365 days.

Since the Earth completes a full revolution around the Sun in 365.25 days, the rest of the time is added once every 4 years.

Thus, a year is a leap year if it is a multiple of 4 or 400 if the last two digits of the year are 00.

Thus, the way to check whether a year is a leap year or not is as follows:

Using Standard Method

1)Read the entered year and store it in the integer variable ‘n’.

2)The year is divisible by 4 and not divisible by 100 (or) the year is divisible by 400 if any one of these two conditions is true then it prints “leap year” otherwise it prints “normal year”.

x

Check Also

C Program To Input Any Alphabet And Check Whether It Is Vowel Or Consonant

C program to input any alphabet and check whether it is vowel or consonant – ...

grandpashabetgrandpashabetGrandpashabethttps://mobilebarhawaii.com/ballettea tropazhacklinkgrandpashabetatakoy escortatakoy escortGrandpashabetonwinligobetDeneme Bonusu veren sitelerYalova escortbakırköy escorthalkali escortGrandpashabetstarzbetkucukcekmece escortbağcılar escortjojobetsightcarefatih escortcesme Escortmaltepe escortdeneme bonusu veren sitelerkralbetzbahisescort kadıköyarnavutkoy escortstarzbetjojobethttps://canlicasino.shorthandstories.com/https://canlicasino.shorthandstories.com/basaksehir escortistanbul, escortjojobetultrabetbetcioholiganbetHoliganbet GirişHoliganbet Girişcasibom güncel girişBeylikdüzü escortextrabetholiganbet girişimajbetmavibetextrabetbetturkeybetwoongrandpashabetcasibombets10Grandpashabetonlyfans leakscratosroyalbetgrandpashabetmeritkingkingroyal telegramromabetromabetromabetlunabettürk pornoselcuksportshdtaraftariumtaraftariumbahiscommaksibetcasibomolabahiscasibomtipobetkulisbetganobetGrandpashabetgrandpashabetdeneme bonusu veren kumar sitelericasibommarsbahisbelek escortafyon escortBetwoonholiganbet girişjojobetonwin girişdeneme bonusudeneme bonusueditörbet güncel girişmadridbetbetciovaycasinojojobetdeneme bonusujokerbetcasibomganobet girişcasibomcasibomasdasdasdasdasdashttps://www.newstrendline.com/selçuksportshddeneme bonusu veren sitelercasibomdeneme bonusu veren sitelernowinnowincratosroyalbetcratosroyalbetcasibom girişcasibom토토사이트batumi escortscasibomonwincasibom girişhttps://sonbahisegiris.com/sonbahis-sikayet/holiganbetholiganbetcasibompusulabetmatbetmarsbahismadridbetjojobetextrabetjojobetjojobetdinamobetbetciomegabahiszbahisotobetbetturkeyonwin kayıtjojobetgrandpashabet