LEAP YEAR

#include<stdio.h>
#include<conio.h>
void main()
{
    int year;
    printf("Enter a year to check");
    scanf("%d",&year);
    if(year%100 != 0 && year%4 == 0)
    printf("Year is leap year");
    else
    printf("Year is not leap year");
}

0 comments: (+add yours?)

Post a Comment