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

If an atom has 15 electrons, how many electrons are in the n=1 energy level? 08 02 0 1 O 18
One of sociology's most difficult issues to understand is the connection between the individual and society, in part because of how the everyday use of these te
What is the exact value of Tangent (StartFraction 19 pi Over 12 EndFraction)? please explain how you got it
Find the scale of each map. - 3 cm on the map corresponds to an actual distance of 120 km. - 3.2 cm on the map corresponds to an actual distance of 120 correspo
The mixture of salt and _____ can be separated using sublimation process​
WILL MARK BRAINLIEST PLEASE HELP
Elements that are in period ONE Has ___ electron shells
half the product of two numbers a and b, added to thrice a third number c
24.4 x 1.3 show work
Multicellular animals exhibit cell specialization, which means – They have larger cells. All cells perform every necessary task for life. They have cells that