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

Identify the correct sentence. a. Lou takes his studies more serious. b. Lou takes his studies seriously. c. Lou takes his studies serious. d. Lou takes his
One third of the opposite of a number is less than 12
Number pattern 1,1,2,6,24,120
Why did Albert Einstein leave Germany? A. because his scientific experiments were continually disproved B. because he was a member of the then out-of-power N
Identify the sentence. a. Aaron wouldn't never argue with his boss. b. Aaron would never argue with his boss. c. Aaron want never argue with his boss. d. Aa
How do you determine the half-life of a radioactive parent isotope based on a decay curve?
Do URLs identify the location of Web content?
All dictionaries arrange the same information about words in the same way. True False Please ASAP
How did the development of irrigation systems improve living conditions? a. It gave people a surplus of food. b. It made people switch from hunting to herding.
my number has 2 hundreds the tens digit is 9 more than the ones digit