//pgm to check whether the entered year is a leap year or not
#include<iostream.h>
#include<conio.h>
void main()
{
int y;
clrscr();
cout<<"enter the year";
cin>>y;
if(y%4==0)
cout<<y<<"is a leap year";
else
cout<<y<<"is not a leap year";
getch();
}
Please Click on ADS!!
Please Click on the above ads given by GOOGLE , so that I can maintain my blog!!
Tuesday, August 31, 2010
Subscribe to:
Post Comments (Atom)

0 comments:
Post a Comment