बिजनेस मार्केटिंग का लो कॉस्ट फंडा , अपने मोबाइल से ऑटो sms भेजकर मार्केटिंग करे विजिट करे http://autotextsms.com/ बिजनेस मार्केटिंग का लो कॉस्ट फंडा http://autotextsms.com/

Search This Blog

Translate

check year is leap or not c program

write a c program to check leap year or not,c program to check leap year using logical operators,c program to check leap year using function,c program to find leap year or not using conditional operator,c program to find leap year using if else,c program for leap year using nested if

#include"stdio.h"
#include"conio.h"
void main()
{
    int year;
    clrscr();
    printf("Enter the year=");
    scanf("%d",&year);
    if(year%400==0)
    {
        printf("\n\n%d is leap year.",year);
    }
    else if(year%100==0)
    {
        printf("\n\n%d is not leap year.",year);
    }
    else if(year%4==0)
    {
        printf("\n %d is a leap year.",year);
    }
    else
    {
        printf("\n %d is not a leap year,",year);
    }
    getch();
}

write a c program to check leap year or not,c program to check leap year using logical operators,c program to check leap year using function,c program to find leap year or not using conditional operator,c program to find leap year using if else,c program for leap year using nested if

 

C Program example List