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

White light strikes a prism on one side while individual colors of light travel out of the prism on its other side. This Demonstrates that A. each color of ligh
What was the focus of Johnson's Great Society program?         A. Trade   B. Military spending   C. Poverty   D. Foreign Affairs
Describe how opportunity costs are related to profits.
The aim of the Prohibition movement was to forbid the buying and selling of slavesweaponsalcoholcurrency.
the MOST common energy source for all cells and enters the cell by facilitated diffusion
true or false fiber cannot be digested
A group of similar cells that perform a specific function is a(n) a. organ system. b. organ. c. tissue. d. organism.
A steel plant has two sources of ore, source A and source B. In order to keep the plant running, at least three tons of ore must be processed each day. Ore from
Canada, Russia, and _____ are areas of large oil reserves the United States Great Britain Saudi Arabia South Africa
Five hundred art critics chose which piece of art as the most influential of the twentieth century?