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

To "brainwash" captured american soldiers during the korean war, chinese communists made effective use of
What is the ratio of carbon atoms to hydrogen atoms in a saturated cyclic hydrocarbon?
Which STD/STI can cause genital warts and cervical cancer
Which statement best describes how Great Britain’s colonial empire contributed to the industrial revolution beginning in Great Britain
What did Carl Vinson do during world war
Choose the best spanish equivalent to the phrase. josué is the best translator in the office.
whats the answer for this paper
Jonas bought a new leather jacket after saving for many months for the luxury purchase. on the first day he went out wearing the new garment, he found a $50 bil
Why were groups such as the federalist opposed to the war of 1812
In the presentation we learned that "one exchange rate is the reciprocal of another exchange rate" This means that if 1 GBP = $2.00, then $1 = ?Question 2 optio