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

Antibodies work by attaching to ____, making them useless. a.allergensc.virusesb.antigensd.protists
Which type of engineer would you expect to be involved in preventing or cleaning up pollution?
The polynomial 16x +2 is a ? Adding the term ? Would make it a trinomial
Why was california not considered for statehood before the gold rush in 18 48?
what happened before lexington and concord
In hard times by Charles dickens, mr.gradgrinds comparison of people to "reasoning animals" shows that he
Who is the leader of the state and the borough? (brooklyn)
What was France's involvement in the Revolutionary War? France didn't want to get involved in a fight between America and Britain. France started their own war
the number of gallons of gas in the tanks plus 7 more adds up to 12 gallons
Which similarity do William Shakespeare's sonnet 130 and shwayzes song perfect for me have in common