Pages

Tuesday, 2 September 2014

Program to find leap year



// Code is given below


#include<iostream>
using namespace std;

int main()
{
int year;
cout<<"Enter the year : ";
cin>>year;
if( year % 4== 0)
{
cout<<"It is a leap year";
}
else
{
cout<<"It is not a leap year";
}
return 0;

}

No comments:

Post a Comment

thnx for visiting my blog