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

( − 2 7 ) ( 5 − 8 ) Please solve .
What's the surface area?
Please help almost finished
Please help me with this
This one is so hard what I supposed to do with on number???
what type of artwork was common in the American colonies
Ruby is 25 and has a good job at a biotechnology company. She currently has $9,200 in an IRA. She believes her IRA will grow at an annual rate of 7 percent, and
if a organism haploid number is 10, what is it’s diploid number
Which choice best completes the sentence? _____ you must travel quite far south. -In order to reach Acapulco, -In order to reach, Acapulco -In order, to reach A
What values for θ (0 ≤ θ ≤ 2π) satisfy the equation?2 sin θ cos θ + root3 cos θ = 0?