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

Find a two-digit number such that three times the tens digit is 2 less than twice the units digit, and twice the number is 20 greater than the number obtained
In the relationship between number of towers and number of customers proportional? Explain
public schools are free schools supported by_________?
9x-12=5x-4 pls help
the rule T(4, -1) is used for point (2, -7). Where is the translated point in the coordinate system
Find the sum or difference 8+(-5)
the price of a wristwatch is $46.50 the sales tax rate is 5% to the nearest cent what is the total cost of the wristwatch including the sales tax
What is the epipelagic zone of the ocean? A.A zone with no light that is freezing cold B. The bottom zone that reaches the sea floor C. The zone that receives t
Write the coordinates of the vertices after a transition 5 units right S= U= T=
Modelar con matemáticas Aleyshka está ahorrando dinero en su cerdito. Tiene 15 monedas de 25 centavos, 19 monedas de diez centavos y el resto son monedas de ci