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

During the Industrial Revolution, there were changes in: A. society and the economy B. manufacturing C. transportation D. B and C E. A, B, and C
Francis Scott Key wrote the poem "Star-Spangled Banner" while watching an overnight battle here...​
Write the fraction or mixed number as a percent. 9/25
What is the main function of the nervous system? (Not sure if this is right answer)
How do the liver and the pancreas aid in the digestive process?
-x+4x-9=8x+6 what’s X?
Message what is the meaning of the word aggravated A. To be more than B. To ease up C. to make worse D. To he related to.
Aarons heartbeats 166 times in 120 seconds. Callie's heart 88 times beats 88 times in 60 seconds. Emma's heart beats 48 times in 30 seconds. Galen's heartbeat 2
A compound is analyzed and found to be 50% sulfur and 50% oxygen. If the total amount of the sulfur oxide is 12.5 g, how many grams of sulfur are there? Show wo
can someone please help me