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

Explain the role of risk adjustment in managing health care organizations
Find the points on the curve y = 2x3 + 3x2 − 12x + 7 where the tangent line is horizontal.
The file explorer status bar displays ____. a. all view buttons b. only the details and large icons view buttons c. only the tiles, list, and content view butto
What is the best possible answer to this
Please helP!! I don't know how to do this!! The dynamic pressure q generated by a fluid moving with velocity v can be found using the formula above, where n is
A cable company uses the function f(h)=30h+60 to calculate the total repair bill, f(h), for h number of hours worked. Find h if f(h)=150
The horse on a carousel is 4.5 m from the central axis. if the carousel rotates at 0.14 rev/s , how long does it take the horse to go around twice?
Chad casts a shadow that is 14.3 feet long. The straight-line distance from the top of Chad’s head to the end of the shadow creates a 23° angle with the ground.
***HURRY***Which equation is used to calculate the electric potential in an electric field from a point charge? V = k q/d^2 V = k q/d △V = △U/q △V = △U/E
What are the companies called that collect, edit, duplicate, and distribute printed music?