#include<stdio.h>
int main()
{
int year;
printf("Enter any year for test leap year:");
scanf("%d",&year);
if(((year%4)==0)&&((year%100)!=0)||((year%400)==0))
printf("\n This enter %d is leap year\n",year);
else
printf("\nThis enter %d isn't leap year\n",year);
return 0;
}
int main()
{
int year;
printf("Enter any year for test leap year:");
scanf("%d",&year);
if(((year%4)==0)&&((year%100)!=0)||((year%400)==0))
printf("\n This enter %d is leap year\n",year);
else
printf("\nThis enter %d isn't leap year\n",year);
return 0;
}
0 comments:
Post a Comment