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

The borders of west and east pakistan were based on?
Jenna Is 4 Years Older Than Her Sister. The Sum Of Jenna's Age And Her Sister's Age Is 32. How Old Is Jenna?
solve for k. 2S=n(a+k)
The walls of the tombs inside the pyramids were painted with a. pictures of the deceased b. his family c. a list of his accomplishments d. all of the above
how did relationship between europeans and native americans seem to change as more and more europeans came to america. why did spain finance columbus voyage.
If (a,-7) is a solution to the equation 8a+3b=3, what is a?
What does JPEG stand for?
With respect to the developmental sequence, when learning throwing what are the stages a student passes through?
In some areas nearly 90% of native Americans were killed by _____ that were introduced by europeans
i think of a number, multiply it by 3 and add 4 and i get 22 form an equation, using x for the unknown number and then solve it