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

HELP!!!!!!! The total sale price for purchase at one store is $268.97. The total sale price at another store is $240.95. You have an additional 10% off coupon f
Calling Joe 45 minutes to the airport he arrived 90 minutes before his flight departed and then he spent 17 minutes in the air once he landed Collins been 20 mi
describe stem cells, stem cell division and differentiation, and the role of specialized cells in complex organisms, such as humans.
Which of the following is a meander that has been cut off from a river? A)Coastline B)Gully C)Oxbow lake D)Stream
Sum of q and 10 is 20
Which number represents the "Trans-Mississippi Theater" of war during the Civil War? A) 1 B) 2 C) 3 D) 4]
Which graph represents f(x)=1/2x^2 ?
Which of the following is the best definition of a scientific theory?Help me plz
HELP ME How has the discovery and usage of the periodic table benefited society? Select all that apply It has enabled scientists to communicate chemical discov
Jack is 5 times younger than her mother. In 6 years, Jack will be three times younger than her mother. How old is each now?