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

The dimensions of a brick that weighs 25 N are 0.19 m × 0.07 m × 0.095 m. What pressure does the brick exert on the ground if it is resting on its largest face?
How consumers behaviour affect market equilibrium
The length of a pool is 3 feet more than twice its width. If the perimeter of the pool is 72 feet, find the dimensions of the pool by writing and solving a syst
what time is 9 hours and 30 minutes before. 4:25
solve 2/3 + 1/4x = 1/3
Please tell me five slogans on conservation of natural vegetation.
Find an equivalent ratio for 22/55 then write the proportion ?
Terri's teacher gives her the equation 3(5)^x=127-2x, and tells her that she will not know how to solve it algebraically. Explain how Terri could use a graph to
Which of the following rivers is the world's busiest waterway ?
The number of waves that pass a particular point in a unit of time is called the __________ of the waves. (a) rarefaction (b) compression (c) amplitude (d) freq