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 inner and outer Radii of a cylindrical pipe are 5 cm and 4 cm respectively. find the area of cross section of the pipe.
a lunch bill including tax, is divided among you and 5 friends. everyone pays less than $8.75. write and solve an inequality that describes the total amount of
Does an owl have a backbone?
Does an owl have a backbone?
Factor the expression. If the expression cannot be factored, say so.
The ______ was established in 1943 to assist in the transition from a peacetime to a wartime economy ?
find the sum. write each mixed number in simplest form 4 7/8 + 5 1/4
A blue rope is 3 times the length as a red rope. A green rope is 5 times as log as the blue rope of the total length of all 3 ropes equals 508.25m what is the l
What's 5 divided by x squared explain
What's 5 divided by x squared explain