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

Besides advertising new products and services, commercial photography also ____________
why would someone want a midwife to deliver their baby?
if the factors of a polynomial are x+7 and x-3, what values of x make that polynomial 0?
what is ? + 38 = 60
explain how you would convert 4meters to millimeters
how to start a persuasive essay on gun control
With the fall of the Roman Empire, the Catholic Church took a negative stance on popular theatrical performances. Which of these sentences explains why the Cath
How am I supposed to not get nervous for my speech and presentation?
sarah owns a book store. she is planning to stock some books by a famous author. but she has a tight budget, and she is not sure whether to stock all the previo
In this excerpt from Shakespeare’s Romeo and Juliet, which line best shows that Mercutio blames his death on the fighting between the Capulets and the Montagues