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 the concentration of hydrogen ions commonly expressed as
Describe the types and of angles formed when you divide a circle 4 equal part
How many bytes are in 1 kilobyte of storage
What happened at the 1968 democratic convention
how do i solve this???
the function y=5/3× is shifted up 4 units what is the equation of the new function​
A contractor needs to put a carpet in the hallway of a house, the diagram of the houses is below.All of the sides of the figure of 4 feet long except for the tw
Please select the word from the list that best fits the definitionHay nueve entradas.lllllllllll..USAel béisbolel fútbolel baloncesto​
Write two numbers between 50&60 that are both multiples of the same number. What factor do they have in common?
How does Catherine feel about Gatsby and myrtles affair