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

Q=p(r+s) Solve for p.
Which word does not represent a type of behavior? A. patrimonial B. naive C. pedantic D. puerile
How were marriages arranged in medieval European society?
Compared to "In Trying times," the diction of "Girls Can We Educate We Dads?" is more a. emotional b. abstract c. dejected d. informal
6 divided by four sevenths
rashid bought some baseball cards. after giving 7 cards to hos friend grace, he arranged the remaining cards in 6 rows of 4. how many cards did he buy?
estimate the difference between 206 and 167
The digestion process starts in the _____. esophagus stomach small intestine mouth
If a single cell dies in a multi-cellular organism, what happens to the organism
Why did the king issue the proclamation of 1763? to enforce tax on sugar to establish British soldiers in the colonies to encourage settlement of lands west of