Computer Science, asked by ironmwn8025, 9 months ago

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 Anonymous
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