/*C++ program to check Leap year*/
#include <iostream>
using namespace std;
int main()
{
	int year;
	//input a year 
	cout<<"\nEnter year: ";
	cin>>year;	
	/*
	if( (year%100!=0 && year%4==0) || (year%400==0) )
		cout<<year<<" is a Leap year."<<endl;
	else
		cout<<year<<" is not a Leap year."<<endl;
	*/	
	//using TERNARY OPERATOR/CONDITIONAL OPR/?: OPR
	( (year%100!=0 && year%4==0) || (year%400==0) ) ?
		cout<<year<<" is Leap year."<<endl :
		cout<<year<<" is not a Leap year."<<endl;
	return 0;
}