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

In many cases the encryption or safeguard on an e-card comes in the form of a __________ on the back.
what is the range of f(x) = – 4?
which house is base on population according to the great compromise ?
Suppose the ratio of Lev's age to Mina's age is 1 : 2 and the ratio of Mina's age to Naomi's age is 3 : 4. What is the three-way ratio of Lev's age to Mina's
what system maintains the ph of human blood at very near 7..4
what is the percent by mass of carbon10 hydrogen 14 nitrogen 2
why do governments intercode in the market
why is hyperbole useful in poetry
Which student used the correct steps to construct parallelogram PQRS? Student 2 Student 1 Student 4 Student 3
what sphere is the earths crust a part of