honryyy honryyy
  • 01-01-2021
  • Computers and Technology
contestada

Write a program that reads an integer and determines and prints whether it is odd or even.

Respuesta :

Cytokine
Cytokine Cytokine
  • 01-01-2021

num = int(input("Enter a number: "))

print(str(num)+" is even" if num % 2 == 0 else str(num)+" is odd")

I wrote my code in python 3.8. Best of luck.

Answer Link

Otras preguntas

Why is sodium sulphate hemihydrate called as "Plaster of Paris"?
in the number 13,407.036 there are two 3's. Explain how the values of the 3's are related.
How do you?...Multiply out and simplify 10(2x-1)-20x?
Why is sodium sulphate hemihydrate called as "Plaster of Paris"?
Simplify the expressions: cot 0 sec 0 A. Sin0 B. Csc0 C. Cos0 D. Cos* 0
what's another word for over thinking?
What is the amplitude of y=1/2 sin2x
what is a high structure part of a church which has 5 letters
you have a standard deck of 52 cards. you pick one card and then, with out putting the first card back, you pick a second card. what is the probability that bot
What were the major causes of WWII? Please include at least 4 answers.