How To Check Leap Year in C Programming | C Programming Examples - 13

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. 

C Programming Examples:

1. Write a C Program to Check Leap Year

2. C program to Check Leap Year

3. How to Check Leap Year in C Programming

0 Response to How To Check Leap Year in C Programming | C Programming Examples - 13

Post a Comment