Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)
C Program To Check Whether A Year Is Leap Year Or Not | C Programs
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 Count The Total Number Of Notes In A Amount | C Programs

C program to count the total number of notes in a given amount – In ...

atakoy escortatakoy escortbakırköy escortşişli escortbağcılar escortsightcaredeneme bonusu veren siteleristanbul, escortromabetdeneme bonusu veren sitelerdeneme bonusu veren sitelerDeneme Bonusu Veren SitelerDeneme Bonusu Veren SitelerDeneme Bonusu Veren SitelerDeneme Bonusu Veren Sitelertaraftarium24deneme bonusu veren sitelergrandpashabetgrandpashabetGrandpashabetdeneme bonusu veren sitelerdeneme bonusu veren sitelercasibomvaycasinobahcesehir masaj salonucasibom girişdeneme bonusu veren sitelerdeneme bonusu veren sitelerdeneme bonusu veren sitelerdeneme bonusu veren sitelercasinofastbetwoonroyalbetdeneme bonusugrandpashabetdeneme bonusu veren sitelermarsbahis girişmarsbahis girişmadridbetdeneme bonusu veren sitelerdeneme bonusu veren sitelerdeneme bonusu veren sitelerdeneme bonusu veren sitelerdeneme bonusu veren sitelerromabetistanbul escortgrandpashabetgrandpashabetgrandpashabetroyalbetgrandpashabetjojobetartemisbetcasibommeritking girişcasibomcasibom girişcasibom girişcasibomkulisbetvaycasino girişvaycasino güncel girişvaycasinovaycasino girişvaycasino güncel girişcasibomcasibom girişcasibom güncel girişcasibomcasibom girişcasibom güncel girişgrandpashabetgrandpashabet girişgrandpashabetgrandpashabet girişbetgray güncel girişjojobetgrandpashabetgrandpashabetgrandpashabetgrandpashabetgrandpashabetCasibomzbahiscasibom girişcasibom güncelcasibom güncel girişdeneme bonusuromabetkolaybetdeneme bonusu veren sitelerBetpasjojobetDeneme Bonusu Veren Sitelerjojobetbahiscasinobahiscasino girişjojobetcasibomatlasbet girişCasibom güncel girişDinamobet güncel girişatlasbetholiganbetHoliganbetotobet girişotobetkralbet girişkralbetkingroyal girişkingroyalzbahis girişmadridbetmeritking토토사이트kalebetkalebet girişkonya escortganobetgalabetbetzulalotobetRokubet girişcasibommatadorbetmatadorbetcasibomcasibomcasibomatlasbetatlasbet girişcasibom güncel girişbetparkcasibomsekabet girişbahiscom girişbahsegel girişgrandpashabet girişgrandpashabet girişmeritking girişbahiscombahsegelpusulabet girişonwinsahabetmatadorbetjojobetmeritkingonwinholiganbet girişmeritking girişjojobet girişmatadorbet girişonwin girişholiganbet girişjojobetholiganbetonwinonwinonwincasibomcasibom güncel girişcasibom güncel girişcasibom güncelcasibomcasibom giriştempobetbetparkperabet girişbetmoonvbetholiganbetpiabellacasinobetgarantionwinonwinmeritkingmarsbahisgrandpashabetcasinopercasinoper girişholiganbet girişonwinonwinsahabetmatadorbetjojobet girişjojobetmeritkingholiganbetonwinmatadorbet1xbet girişonwin girişjojobetmatbet güncel girişimajbetmatadorbet girişvdcasinomeritkinggrandpashabetbahiscomgrandpashabetbankobetbahiscomramadabetdamabetlunabet