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 regular polygon is defined to be a(n) _____ polygon with congruent sides and congruent angles
what is brood nurse​
Kylie started basketball practice at 2:30 p.m and finished at 6:00 p.m how long was kylie at basketball practice
1. The National Highway Traffic Safety Administration estimates that some _lives could be saved every year if all vehicle occupants used seatbelts. Choose one A
What Are Some Tips To Pass (Cisco ADVDESIGN) 352-001 Exam?
Which disorder is common in males than female
Which of the following is an example of Müllerian mimicry? A) two species of unpalatable butterfly that have the same color pattern B) a day-flying hawkmoth tha
The sum total of an organism's interaction with the biotic and abiotic resources of its environment is called its A) habitat. B) logistic growth. C) biotic pote
A marae is which of the following? A community meeting place A ceremonial headdress A small human sculpture A seafaring tool
The half-life of carbon-14 is 5,730 years. how old is a sample that is 75% daughter isotope and 25% parent isotope?