Leap Finder

Leap Finder

Don't put your Life on Hold waiting for the perfect moment
If we wait until the time is right, we might wait forever!
Take a leap of Faith and Just do it Now!😇
I have created a Leap Finder in which you have to put the year and it will give you result whether it is Leap Year or not. Try this!


#include <iostream>
using namespace std;
/* Created by Harsh */
// Leap Year //
void leap(int x)
{
if((x%4==0&&x%100!=0)||(x%400==0))
{
cout << x <<"\nis a Leap Year";
}
else {
cout << x << "\nnot a Leap Year";
}
}
int main()
{
int a;
cin>>a;
leap(a);
return 0;
}

Note: Enter the Year and Submit it.
Please Subscribe me ...If you Like my Projects . It will be great Pleasure for me 😊 and I will come with more Interesting Projects for upcoming Days.
Thank You.