Programmer ::fizmhd(MEA) www.mdown.co.cc*/
#include
int main()
{
int year;
printf("\nEnter year\n");
scanf("%d",&year);
if(year%4==0)
{
if(year%100==0)
{
if(year%400==0)
printf("\nLeap Year\n");
else
printf("\nNot a Leap Year\n");
}
else
printf("\nLeap Year\n");
}
else
printf("Not a Leap Year");
}
No comments:
Post a Comment