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

Compare using <, >, or =. 7/9_____4/9
Which statement best defines ekphrastic poetry? A) Ekphrastic poetry recalls biographical details of famous painters. B) Ekphrastic poetry offers rhyming critic
Which passage from Grendel best illustrates the theme life is meaningless
Danny wanted to become a lawyer so that he could ________ for troubled teens
why did General Ford face a difficult election in 1976
Gravel, crushed rock, cinder—these are used as ballast on railroad beds. correct incorrect
Please help!!! numbers less than or equal to 1911 numbers less than or equal to 2089 numbers greater than or equal to 1911 numbers greater than or equal to 2089
Precision can be defined as the A.exact center of a data set. B.reproducibility of a measured value. C.correlation between two variables that are measured in a
what climate comprises most of North africa
Put the fractions in order from smallest to largest. 5/12 2/3 5/6