#include<iostream>
using namespace std;
#include<conio.h>
int main()
{
int year;
cout<<"enter any year : ";
cin>>year;
if((year%4==0&&year%100!=0)||year%400==0)
{
cout<<year<<" is a Leap Year.";
}
else
{
cout<<year<< "is not a Leap Year";
}
getch();
return 0;
}
using namespace std;
#include<conio.h>
int main()
{
int year;
cout<<"enter any year : ";
cin>>year;
if((year%4==0&&year%100!=0)||year%400==0)
{
cout<<year<<" is a Leap Year.";
}
else
{
cout<<year<< "is not a Leap Year";
}
getch();
return 0;
}
No comments:
Post a Comment