How To Check Leap Year in C Programming | C Programming Examples - 13
Write a C program to Check Leap Year. How to Check Leap Year in C programming. Logic to Check Leap Year in C programming.What is Leap Year?
A year that has 366 days is called a leap year.
A year can be checked whether a year is leap year or not by dividing the year by 4, 100 and 400. If a number is divisible by 4 but not by 100 then, it is a leap year. Also, if a number is divisible by 4, 100 and 400 then it is a leap year. Otherwise the year is not a leap year.
This is a very simple program for beginners to understand how if-else condition works and how to check leap year in c programming language.
What is Leap Year?
A year that has 366 days is called a leap year.
A year can be checked whether a year is leap year or not by dividing the year by 4, 100 and 400. If a number is divisible by 4 but not by 100 then, it is a leap year. Also, if a number is divisible by 4, 100 and 400 then it is a leap year. Otherwise the year is not a leap year.
0 Response to How To Check Leap Year in C Programming | C Programming Examples - 13
Post a Comment