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

Magnesium Orbital Notation: Electron Configuration
Use the exchange rate £1 = €1.14 to convert €57 into £.
You may use a calculator for this item. Jose makes sandwiches in his restaurant. The table shows the amount of meat he uses on each sandwich. Type of Sandwich A
Find the multiplicative inverse of 7/12
Please give answer and explain how you got it because I'm so confused PLZ
What can change the DNA of a bacteria?
Which claim did President Kennedy not make in his speech at Rice University?
8. Who was the president of the Second Continental Congress?
A laser penis pointed at a dark wall. A spot of light is seen at exactly where the pen is pointing. Which property of light does this show? A Light travels in a
Why does light we see today tell us something about what happened earlier in the history of the Universe? I will mark brainliest !!