honryyy honryyy
  • 01-01-2021
  • Computers and Technology
contestada

Write a program that reads an integer and determines and prints whether it is odd or even.

Respuesta :

Cytokine
Cytokine Cytokine
  • 01-01-2021

num = int(input("Enter a number: "))

print(str(num)+" is even" if num % 2 == 0 else str(num)+" is odd")

I wrote my code in python 3.8. Best of luck.

Answer Link

Otras preguntas

A cash crop is a crop intended for
Solve. Write the difference. 728-107
A circuit with a battery, a 7 ohms resistor, a 17 ohms resistor, and a 29 ohms resistor in series. The total current is the system is 1.0 A. What is the voltage
3x + 8 = 2 (6x-11) - 5x
overproduction reword?
Interest and Annuity 7. A sum of money doubles itself in 6 years at certain rate of interest. In how many years would it triple if the rate of interest is incre
Which number below is a possible solution to x < 10 ? 20, 5, 10
How is the “SSS” for similar triangles different from triangles congruence
Multiply the following rational expressions.
Why do contents of the ice chest in the photo stay cold even though the air around the chest is warm?​