Jaynerandolph1640 Jaynerandolph1640
  • 23-12-2021
  • Computers and Technology
contestada

Write a program to test if an integer input from the keyboard is odd or even. Sample Run 1: Enter a Number: 78 Even Sample Run 2: Enter a Number: 17 Odd

Respuesta :

6385726215
6385726215 6385726215
  • 24-12-2021

Answer:

number = int(input("Enter a number: "))

if number % 2 == 0:

   print("Even")

else:

   print("Odd")

Explanation:

Currently taking python at school. On the last few lessons.

Answer Link

Otras preguntas

Which shows two triangles that are congruent by ASA
Which is NOT equivalent to 64? A) 2^6 B) (2^4 )(4) C) (2^3 )(4^2) D) 4^3
I WILL GIVE U BRAINILIEST!!!!!Need help on how to write a personal narrative.This what I wrote so farEdit pleaseHighschool seemed like it was going to be so sim
Officer Franklin is on traffic duty his motorcycle is parked alongside the freeway and he’s using his radar gun to check the speed of cars. The speed limit on t
How does the biosphere interact with the atmosphere to cause global warming?
give an indrduction to mental health
A right triangle has side lengths 7,24, and 25 as shown below.
the sum of two numbers is 79. one number is 37 more than the other. find the number
How many times does 1/2 go into 1 and 1/4?? PLZ HELP MEHHHHHHHHH
2/3(x-2)=4x solve for x