Write a program that inputs a year and finds whether it is a leap year or not ?
#include<iostream>
using namespace std;
int main ()
{
int y;
cout<<"\t * Leap Year Calculator * "<<endl;
cout<<"Enter the Year you want to calculate "<<endl;
cin>>y;
if (y%400==0 || y%100!=0 && y%4==0 )
{
cout<<"\n";
cout<<"The year you entered is Leap ";
}
else
{
cout<<"\n";
cout<<"The year you entered is not Leap ";
}
}