Even or odd
Read a whole number and print Even if it is even or Odd if it is odd.
Input
One line with an integer n.
Output
Even or Odd.
Constraints
- -1,000,000,000 ≤
n≤ 1,000,000,000
The input is read for you. The starter code puts it in variables; write your code under Your code here and print the answer. Changed the code already? Reset () brings the starter back.
Example 1
Input
4
Output
Even
Why:
4 = 2 × 2, with nothing left over.
Example 2
Input
7
Output
Odd
Why:
7 = 2 × 3 + 1.
Hints
Was this a good challenge?
- Solved by
- 2
- Submissions
- 2
- Accepted
- 100%