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

(PLEASE help me!! I will give 98 points [that's the most it would let me do] ) You want to build a birdhouse and attach it to a branch in a 12-foot tree. You ha
PLEASE HELP ASAP!!! CORRECT ANSWER ONLY PLEASE!!! I CANNOT RETAKE THIS AND I NEED ALL CORRECT ANSWERS ONLY!!! Four 3 Ω resistors placed in series would provide
what is the factor of -12n - 20
Environmental challenges in the US include all of the following except __________.
what is 6.4r−7−2.9 simplified
How can you make a saturated solution from a supersaturated solution?
I’m confused on how to do this can anyone help?
For the reaction ag2s(s) ⇌ 2 ag+ (aq) + s2- (aq), keq = 2.4 × 10-4 and the equilibrium concentration of silver ion is [ag+] = 2.5 × 10-1 m. what is [s2-] at equ
There are 24 muffins in a bakery.If 3/8 of the muffins are blueberry,how many muffins are blueberry?
2gallons = _______ pints