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 is the area of a square that has a side length of 4x
x^2+4x-7 what is the ordered pair
Read the sentences. Original Sentences A measurable physical difference in the ocean occurs at this point. The water surrounding the Antarctic continent is cons
Help fast !!!!!!!!!!! factorise fully :4xy + 16x^2
The table shows the monthly rainfall at a measuring station. What is the mean monthly rainfall? Round your answer to the nearest thousandth. The mean monthly ra
One direction member liam payne welcomed a baby with which british singer in february 2017?
HELP WITH MY EXPOSITORY ESSAY “In what ways can a person’s passion help them grow as an individual?” Use the story the Iron and the Soul for a reference.
If two of these stocks are randomly selected, what is the probability at least one will have a price above $45?
TRUE OR FALSE: Mops may be cleaned in the same sink that employees use to wash their hands.
which fraction is greater than 1/2 but less than 3/4 7/8 , 2/5 , 1/3 , 5/8 or 3/6