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

21. The mean salary of twelve men is $58,000, and the mean salary of eight women is $42,000. Find the mean salary of all twenty people.
The nth term of 8, 8^4, 8^7, 8^10
help and I'll follow you ​
What does a typical english grammar structural syntax HAVE to have? A. A subject B. The object C. A subject, a predicate, and a verb D. A predicate E. A subject
Here are the first five terms of a sequence. 4, 11, 22, 37, 56 Find an expression, in terms of , for the th term of this sequence.
Mrs. Taylor is planning a pizza party for her students. She plans to purchase cheese pizza and pepperoni pizza for her students to enjoy. Cheese pizzas cost $8
What is the most common isotope for element X
difference between meditation and mindfulness
a man buys a car for rs 80000 and spends rs 20000 more for repairing He sells it for rs 125000.find his gain percent​
In a geometric sequence, the term a(n+1) can be smaller than the term a(n-)