int year ;
cin >> year ;
if (year % 100 = = 0)
{
if (year % 400 = = 0)
cout << "Leap" ;
}
else
cout << "Not century year" ;
if the input given is
(i) 2000
(ii) 1971
Answers
Answered by
2
int year ;
cin >> year ;
if (year % 100 = = 0)
{
if (year % 400 = = 0)
cout << "Leap" ;
}
else
cout << "Not century year" ;
if the input given is
(i) 2000
(ii) 1971
Similar questions