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 224 divided by 60 in fraction form?
Can someone please help me with number 12
What form of government does the United States have? What characterizes this form of government? How is the U.S. form of government different from the forms of
Cars A and B travel along the same straight track. Car A is located at position s1 at clock reading t1 and it maintains a constant speed of v1. Car B is located
Snow Co. began operations on January 2, 2017. It employs 15 people who work 8-hour days. Each employee earns 10 paid vacation days annually. Vacation days may b
Like Congress, forty-nine states have a(n) ____________ legislature. Question 2 options: unicameral tricameral bicameral unpaid
Assume that your parents wanted to have $ 180 comma 000 saved for college by your 18th birthday and they started saving on your first birthday. They saved the s
this is also on the paper, see picture above.​
Show that u(x,t)=cos(a*pi*x)e^-a^2*pi^2*t is a solution of the heat equation with k=1, on any interval [0,L].
Which of the following statements about Gauss’ Law are correct. Choose all that apply. If the statement is not correct, provide a counter-example. Be brief! Con