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

Why is science important for society? a. It helps make decisions based on scientific reasoning. IB. t proves that all questions can be answered using science.
A square patio has an area of 200 square feet how long is each side to the nearest 0.05
It is a grey cloudy day and A light rain is falling what type of clouds do you do you expect to see. explain your answer
Mrs.Prescott has 12 oranges. She puts 2 oranges in each bag. How many bags does she have?
The Indonesian name for Borneo is a. Brunei. b. Kalimantan. c. Sulawesi. d. Irian Jaya.
Sandy has 3 dozen golf balls. How many golf balls does he have?
Brett and rose's mother donated $7 for every lap they walked in the walk a thon. Brett walked 16laps and Rosa walked 19 laps. write an expression and solve t
what percent of 70 is 77
The one nation in Africa that successfully resisted European rule was
How are the themes alike the road not taken and the seven ages of man