Top baner Big

Your Ad Here

Top Banner

Your Ad Here

Saturday, November 22, 2008

Leap Year

/*Program : Leap Year
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:

Easy Hits

EasyHits4U.com - Your Free Traffic Exchange - 1:1 Exchange Ratio, 5-Tier Referral Program. FREE Advertising!

Bottom Square