#include<stdio.h>
int main()
{
int y;
printf("Enter the year\n");
scanf("%d",&y);
if(y%4==0&&y%100!=0||y%400==0)
{
printf("Enter year is leap year");
}
else
{
printf("Enter year is not leap year ");
}
}
OUTPUT
Enter the year
2016
Enter year is leap year
Comments
Post a Comment