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

PLEASE HELP! Why were people forced to rely on others after they moved to the city? After they moved they had no more money to move back to the farms. The peopl
which statement about presidential caucuses and primary elections is most accurate
Which word from the paragraph helps the reader understand the meaning of the underlined word? It took Ethan months of trying to acknowledge that he isn’t very g
Sorbet is a frozen dessert that is often made from fruit. how many portions each weighing 1/10 of a kilogram can a french dessert chef create from 3 kilograms o
what are 3 types of conflict.?
a store has 300 television on order and 80% are high definition . how many television are in order are high definition
I hear the music Dance to the beat of the drum I find my freedom. This is an example of which type of poem? A. Rhyme B. Sestina C. Haiku D. Blank ve
A circular rug has a radius of 3 ft. What is the circumference of the rug? Use 3.14 for mc014-1.jpg. 9.32 ft 9.42 ft 18.64 ft 18.84 ft
which conflict from the story "marriage is a private affair" represents a generational clash that creates a dilemma for the characters?
What is the most poular ice cream