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

A basketball hoop has a radius of 22.5 centimeters. What is the area, in square centimeters, of the basketball hoop? Round your answer to the nearest square cen
What was the central idea of the early Korean belief in shamanism? Multiple choice question. cross out A) All living things in the world have spirits. cross out
What it the tone of article 1 in 1868 South Carolina constitution how can I write a claim about the tone
How much will you pay per month if you buy a car worth $17499 at a 5.4% APR and spend 60 months paying off the loan
Suppose total cost in dollars from the production of x printers is given by C(x) = 0.0001x^3 + 0.005x^2 + 28x + 3000 (a) Find the average rate of change of tota
Let f(x)=9+2x and g(x)=x^2-3x+4. Find g(3) + f(1).
will gold or water gain more heat when heated up
Fill in the blank to make a true statement. x² +_x+21 (x +_)(x + 7)
Ordering numbers decimals 4.5 4.05 5.4 5.45 5 least to greatest
Lisa, a network manager, has been assigned to a new team. She organizes a meeting to understand the strengths and talents of the team members. Which quality is