C++ Program to Check Whether it is Leap Year or Not
#include<iostream>
#include<conio.h>
using namespace std;
void main()
{
start:
system("color 0B");
int year;
cout<<"\n\t*>*>*> CHECKING LEAP YEAR <*<*<*\n"<<endl;
cout<<"Enter The Year To Check Wheather it is Leap or Not :";
cin>>year;
if(year%4==0)
{
cout<<"\n\t\t>>> Leap Year <<<"<<endl;
}
else
{
cout<<"\n\t>>> Not Leap Year <<<"<<endl;
}
goto start;
getch();
}
#include<conio.h>
using namespace std;
void main()
{
start:
system("color 0B");
int year;
cout<<"\n\t*>*>*> CHECKING LEAP YEAR <*<*<*\n"<<endl;
cout<<"Enter The Year To Check Wheather it is Leap or Not :";
cin>>year;
if(year%4==0)
{
cout<<"\n\t\t>>> Leap Year <<<"<<endl;
}
else
{
cout<<"\n\t>>> Not Leap Year <<<"<<endl;
}
goto start;
getch();
}