Google Search

Wednesday, December 3, 2008

A Program that will Count Leap Year

#include
void main ()
{
int year,
printf ("Enter the year: ");
scanf ("%d", & year);
if (year % 4 = = 0 & & year % 100! = 0 || year % 400 = = 0)
{
printf ("It is a leap year\n");
}
else
{
printf ("It is not a leap Year\n");
}
}

No comments: