Current location - Training Enrollment Network - Mathematics courses - There is a problem that cannot be solved in compulsory three [preliminary algorithm] of senior high school mathematics.
There is a problem that cannot be solved in compulsory three [preliminary algorithm] of senior high school mathematics.
begin

Input a

If a is divisible by 4.

If a is not divisible by 100.

Print a; "This year is a leap year"

other

If a is divisible by 400.

Print a; "leap year"

other

Print a; "non-leap year"

If ... it will be over.

If ... it will be over.

other

Print a; "non-leap year"

If ... it will be over.

end