Infolinks - Earn Easy Money

Saturday, April 4, 2015

C++ program to find out the yaer is leap or not

#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 yaer ";
}
return 0 ;
}

No comments:

Post a Comment

Must drop your comments about post.