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

100 + 55x > 150 + 51x
-0.5(4a-1.5)+0.5a can someone help me out with this
ONLY D IF U ACUTLY KNOW OR ELSE I MAY........ btw this is science and will give branliest. How do atmospheric conditions such as air pressure, air temperature,
What concrete impacts did the women's movement have in the United States?
As a cell grows larger, what happens to the surface area-to-mass ratio?
How do you mark branliest?
What are the advantages that DNA has over RNA?
How does the president’s power as chief executive provide the opportunity to shape implementation of laws passed by Congress and to affect court decisions for y
3 1/3x-5.3= -2 solve for x
examine if the following statement is true or false a.) true b.) false