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

Use the following terms to describe Greek society and economy: tenant farmer, metic, slavery. please asap
Tom works 14 hours a week for 10 weeks and earns a total of $1,351.00. how much money does he make per hour?
who controlled the land where the songhai empire was located before it was songhai
How many calories of heat may be obtained from 3-kilowatt hours of electrical energy?
Henry ford produced a more afforble car primarily because his company was what
Based on Herman's scale model, what is the actual area of the entire side of the house?
Animal-like protists are considered a. autotrophs b. chemotrophs c. heterotrophs d. none of these
"!PLEASE HELP!" Why do geographers divide the eastern U.S. into four subregions?
What is the square unit on 3e-4x969553+h17229
Sunlight produces a spectrum of colors that includes what?