Tuesday 3 December 2019

C program to check Leap Year

----------------------------------------------------------

find Leep year


#include <stdio.h>

int main()
{
    int year;

    printf("Enter year : ");
    scanf("%d", &year);


    if(year % 4 == 0)
    {
        printf("LEAP YEAR");
    }
    else
    {
        printf("COMMON YEAR");
    }

    return 0;
}
----------------------------------------------------------

number is even or odd

2 comments:

Anonymous said...

Good it's too help full

Anonymous said...

GREAT !!!!