Year is divisible by completely 4,100,400 then called that year is leap year.


int main(){
    int year;
    printf("Enter the year : ");
    scanf("%d", &year);

    if(year%4==0 || year%400==0 || year%100==0){
        printf("%d this year is leap year", year);
        printf("%d this year is not leap year", year);

    return 0;

Output :

Enter the year : 2004
2004 this year is leap year


Login is mandatory to comment Please login

Recommended Posts

Perfect Number in C Programming

What is Perfect Number? Perfect Number is a positive integer number that is equal to the sum of the its possible factors.
For Example : 6 is a Perfect Number

Strong Number in C programming | What is Strong Number

Strong Number is a number whose sum of the factorial of digits of number is equal to given number.
For Example : 145 is a strong number.

Neon Number | c programming language

A neon number is a number if the sum of the square of that number is equal to the actual number, then it is a neon number. For Example : 9 is a neon number.

C programming restaurant menu code | @lapmos

In this tutorial we write a c program which print the menus of restaurant with product and price.

Primary Arithmetic program in c programming and cpp programming language

Write a c and c++ programming language , primary Arithmetic Program

Automorphic Number | C programming language | @lapmos

An automorphic number is a number that has the same digit at the end of the square as the given number is an automorphic number. For Example : 25 is a Automorphic Number.