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

Profesora nos vas a poner ud. un examen? Si, ____ voy a poner un examen manana. A. les B. te C. le D. nos
How many electrons in an atom could have these sets of quantum numbers? n=5?
the specific rights that are covered under the 14th amendments due process clause
Solve (2x - 3)(4x2 - 5x + 6)
Determine the ordered pair that satisfies the equation, 4x + 8y = 0. A (4 , 8) B (-8 , -4) C (3 , -6) D (-5 ,5252) E I don't know
Trust Building as a cashier
This is a picture of a cube and the net for the cube. What is the surface area of the cube? 54 in² 81 in² 324 in² 486 in² doing back on track work so thanks for
Complete this statement: The Indian National Congress was created in _________, and the Muslim League was created in _________. A. 1803 / 1887 B. 1858 / 191
Musical instruments whose own material is the sound generator are classified as
MAJOR BIO HELP PLEASE There are four steps in bacterial conjugation. The second step is missing in this list. 1. Special sex pilus connects two cells. 2. 3. Eac