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

Which choice below best restates this long sentence from “The Fall of the House of Usher”? Feeble beams of encrimsoned light made their way through the trellis
2 and 4 seemed really confusing , please help :(
THE PICTURE IS HERE Find the area of the composite figure. 120 in ^2 BTW SORRY I CAN'T MAKE THE FLOOTING TWO ABOVE THE NUMBERS 234 in ^2 228 in ^2 240 in ^2
What does Nikki Giovanni's poetry have in common with lyric poetry?
Too much _______ for children can be toxic, including symptoms of nausea, vomiting, rapid heartbeat, and diarrhea.
1. Jog for a minute, sprint for a minute, jog for a minute, sprint for a minute until you complete about 20-30 min of exercise is an example of what type of tra
The U.S. Senate contains A.435 members and is considered more likely to represent local constituent interests. B.435 members and is considered more stable and i
Speeding is a factor in ___________% of all fatal accidents. A.50 B.30 C.45 D.75
How did western nations and japan acquire spheres of influence in china?
What did the 1933 elections allow the nazi party to do?