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

How many grams of Al2O3 can be formed when 3.33 moles of Al and 4.87 moles of O2 react according to the following balanced equation: 4 Al + 3 O2 --> 2 Al2O3
An industrial plant claims to discharge no more than 1000 gallons of wastewater per hour, on the average, into a neighboring lake. An environmental action group
What is a more formal way of saying 'set up'? ie. "They set up their factories in China"
Please Help Due Yesterday
X Combine like terms: b + 4b2 - 8 + 3b - 2b2
Which of the following processes below enable the kidneys/your excretory system in maintaining homeostasis in the human body? Group of answer choices acting lik
Uhhh I dont understand this lol....
Find the LCM of 30,40,60​
PLEASE HELPPP!!! explain how you know!
3 1 _______ x 1 1 15