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

Write 3 places clay can be found
Alright, so im currently trying to pass a computer science class. i need it done in a little under 2 weeks. Ill just ask the one question right now, but if some
Please answer this correctly
GIVING BRAINLIEST! Use the graph below showing the cost of wars in the 20th century to answer the following question: Which is the best explanation for why the
What contributions did Aristotle make during the Hellenistic era
What is the equation of the line that is parallel to the line y - 1 = 4(x + 3) and passes through the point (4, 32)? y = 2 x + 33 y= *x+36 y = 4x - 16 y = 4x +
The National Assembly took their oath not to leave until they had a constitution on a tennis court because
g Using the available equations in your lab manual , what is the acceleration of an object when it hits the ground if that object is thrown from a building 100
Why is it important to keep your heart rate in your target heart rate zone
Please Help. I have assessment tomorrow!!!!!! Can you write a description of a Monster. Ill mark brainiest and also give you as much points as you want by going