You are on page 1of 1

#include<iostream>

#include<cmath>

using namespace std;

int main()

int year;

cout<<"Enter year:";

cin>>year;

if(((year%4==0)&&(year%100!=0)||(year%400==0)))

cout<<"It is a leap year"<<endl;

else

cout<<"It is not a leap year"<<endl;

return 0;

You might also like