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

what are scale drawings? can you give an example?
Why did Constantine move the capital of the Roman Empire?
An ice company charged $3.40 for 4 bags of ice. if a convenience store bought 6 bags of ice how much would it have cost them?
many of robert frost's poems can be categorized as pastorals. what is a pastoral?
A 2-kg object is moving horizontally with the speed of 4m/s. How much net force is required to keep the object moving at this speed in this direction?
what is 2 times 6254 in rounding
How much longer is 3 meters than 3 yards
What is the value of the expression 1/3^-5 ? A. 243 B. 15 C.1/15 D.1/243
Which disease makes the air sacs in the lungs less elastic, reducing their ability to absorb oxygen?
simon is making wreaths to sell. He has 60 bows, 36 silk roses, and 48 silk carnations. He wants to put the same number of items on each wreath. All the item