#include
#include
void main()
{
int yr;
clrscr();
printf("\n Enter the year=>>");
scanf("%d",&yr);
if(yr%400==0 || (yr%100 != 0 && yr%4 == 0))
{
printf("\nleap year");
}
else
{
printf("\nnot a leap year");
}
getch();
}
this blog is for the new programmer in programing field...
0 comments:
Post a Comment