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

which of the following is not a muscle of facial expression? a.occipital, b.nasal, c. serratus anterior,d. proceeds​
Solve the square root equation. 5-2√x = 11 x = 9, x = 3 x = 3 x = 9 no solution
What are the top three types of sole proprietorships and percentages?
please help asap! i will mark brainliest!!!!!!
Ruby is making decorative pillows for her living room. She bought 3 1/2 yards of fabric. If her total cost was $15.75, what was the cost per yard?
I WILL GIVE WHOEVER ANSWERS THIS OVER 100 POINTS WITH OTHER QUESTIONS IF ANSWERED SOON AND BRAINLYEST OF COURSE In this assignment, you will select one of the
is the center of screen where the turtle is positioned. fil in the blank​
What is the surface area? I need help help
Quiz Time: Topic: Islam 1. What are the 5 pillars of Islam? 2. Do Muslims believe that Prophet Isa (pbuh)? (also known as Jesus Christ) 3. Name some things tha
solve the system of equations by graphing.​