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

what areas did Arab armies conquer?
why doesn't a developing pupa move around?
how would you replace 27/50 with the nearest half or whole without using a number line?
what pushed the American coloniststowards wanting independence from the British
What would happen to the body if the liver is removed????
PLEASE HELP ME Which of the following best summarizes the significance of the Renaissance? Artists and writers created extraordinary art and literature that com
What is the slope and y-intercept of this equation? 2x+4y=14
The richest discovery in the history of mining occurred in 1873. This so-called "Big Bonanza" made _______ the richest man in the world. A. John Mackay B. John
the perimeter of a square is 24 cm. what is the length of the diagonal
which genotype belongs to an offspring that homozygous recessive for both traits