Answer to Question #270064 in Python for Iyang Laceda

Question #270064

That's Odd

by CodeChum Admin

Well, that's odd, or is it? It's your job to find out!


Instructions:

  1. Input one integer.
  2. Print out the integer in one line.
  3. Check whether the integer is odd or not. If it is odd, print "Odd".

Instructions

  1. Input one integer.
  2. Print out the integer in one line.
  3. Check whether the integer is odd or not. If it is odd, print "Odd".

Input

A line containing an integer

5

Output

The first line contains the inputted integer.

The second line contains a string which is the result.

5
Odd




1
Expert's answer
2021-11-23T05:24:23-0500
n = int(input())


if n%2 == 0:
    print("even")
else:
    print("odd")

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS