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

give an example of the of conservation of momentum
What year was hitler born in
subtract 5 from 1/3 of 23
The use of _______ is expected to increase in the future. a. coal b. natural gas c. renewable energy d. all of the above Increases in the world’s population wil
A painter uses a fixed pulley to raise a 1-Kg can of paint a distance of 10 cm. Calculate the ideal mechanical advantage.
[tex] \frac{-2n-2}{3} = 12[/tex] n = ?
In literature authors often use flashback to A. answer questions about plot details or reveal information about a character through a sequence of events that ha
Which of the following statements does not accurately describe stem cells? A. The use of stem cells is without any objections since it can be used in therapies
Which civilization most influenced the style of Russian architecture
Which Section Chief is responsible for ensuring that assigned incident personnel are fed and have communications, medical support, and transportation as needed