C program to check if given year is leap year or not #c #clanguage

preview_player
Показать описание
C program to check if given year is leap year or not
Write a C Program to check if given year is leap year or not

**My YouTube Channel::::::::

**My Instagram Account:::::::

*************************************************

Here's how it works:

1.The program prompts the user to enter a year.
2.The scanf function reads the year entered by the user and stores it in the year variable.
3.The program checks whether the year is divisible by 4. If it is not, then it is not a leap year. If it is divisible by 4, the program proceeds to the next step.
4.The program checks whether the year is divisible by 100. If it is not, then it is a leap year. If it is divisible by 100, the program proceeds to the next step.
5.The program checks whether the year is divisible by 400. If it is, then it is a leap year. If it is not, then it is not a leap year.
The program prints out whether the year is a leap year or not, depending on the result of the above checks.

Note: A leap year is a year that is divisible by 4, except for years that are divisible by 100 but not by 400. For example, the year 2000 was a leap year, but 1900 was not.

*************************************************
**Your Queries::::::::'

c language
c language demo
c language overview
c language tutorial
c language tutorial for beginners
c programming
c programming basics
c programming course
c programming for beginners
c programming language
c programming tutorial
leap year program
leap year program in c
learn c language
learn c programming
program to check leap year in c
the c programming language
edureka c programming

**Hashtag:::::::
#c
#clanguage
#code
#coding
#viral
#viralshorts
#short
#shortsvideo
#viralvideo
#shorts
#clanguage
#sumofseries
#100
#how
#cprogramminglanguagebeginners
#cprogramming
#viralshort
Рекомендации по теме