HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Volumes > Chapter 2. Decision structures > problem:


01. a

Volume problems

• 01. a
• 02. Sign
• 04. Leap Year
• 05. Find the biggest 2
• 06. Find the biggest 3
• 1. a

Feedback

If you notice incorrect translations in Contester, please let author know.

Time limit 200/200/4000/4000 ms. Memory limit 65000/65000/65000/65000 Kb.

Write a program that decides if a number is odd or even.

Input : An integer.

Output : "Odd" or "Even".

Hint : Even numbers are divisible by 2. That is to say when an even number
is divided by 2, the remainder is 0. Use modulus operator (%) to
obtain the remainder.

Для отправки решений необходимо выполнить вход.

www.contester.ru