Saturday, 14 January 2012

Program for Leap year Checking


#include
#include
#include
void main()
{
int year;
clrscr();
printf("enter the year=");
scanf("%d",&year);
if(year%4==0)
{
printf("Leap Year");
}
else
{
printf("not a Leap Year");
}
getch();
}
 

No comments:

Post a Comment