#include”stdio.h”
#include”conio.h”
void main()
{
int i;
clrscr();
for(i=1999;i<=2008;i++)
{
if(i%4==0)
printf("%d is leap year\n",i);
else
printf("%d is not a leap year\n",i);
}
getch();
}
OUTPUT WILL BE
1999 is not a leap year
2000 is leap year
2001 is not a leap year
2002 is not a leap year
2003 is not a leap year
2004 is leap year
2005 is not a leap year
2006 is not a leap year
2007 is not a leap year
2008 is leap year
Google Ads
Friday, May 29, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment