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

how do u express a ratio as a decimal
what is the gcf and lcm of 390 and 250
what are the rational numbers of -12,0,35,4.85,√12,√36,19/6,-10/11,1.4949949994
What is 3 to the 3rd power times 3 to the 4th power
What different peoples contributed to the cultures of Spain and Portugalit has to be five different peoples
how do u express a ratio as a decimal
Georges Cuvier's discovery of fossils of Irish elk and giant ground sloth:
Factor by grouping:4-12r+9r^2i know the answer is (2-3r)^2Can anyone explain to me how it is?
what is 12.345 rounded to the nearest tenth
do you know 10(55-1000)/90+2=?