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 do you write 0.17 in word form?
what number is 1,000,000 greater than 337,676
the cube of x plus 5
counterexample angle bisector?
Lila scores 15 points fewer than Bob, who scores 35 points. Carol scores half as many points as Lila. How many points does Carol score?
What is the greatest common factor of 142 and 148
Whats the answer to 1/5x=121 x=?
Estimate 144,898. Please write that in estimation form
how many ten thousands are in 9,000 tens
How does Newton's second law apply to basketball?