Pages

Friday 18 March 2011

PROGRAM TO FIND LEAP YEAR

DESCRIPTION-:THIS PROGRAM CHECKS WHETHER THE
ENTERED YEAR IS LEAP OR NOT
PROGRAM-:

#include<iostream.h>
#include<conio.h>
void main()
{
int n;
cout<<"enter the year";
cin>>n;
if(n%4==0)
{
cout<<"entered year is leap year";
}
else
{
cout<<"the entered year is not leap year";
}
getch();
}

0 comments:

Post a Comment

 
Copyright (c) 2010 Concepts Of C++. Design by WPThemes Expert

Blogger Templates and RegistryBooster.