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

HELP if f(x)=6x-4, then f^-1(x)=
800x200 I know the answer is 160000 but I want to see how quick you guys answer...
que tema inspira a francisco jose caldas a escribir
Find the area of the shaded region below. The units are in feet. Use 3.14 for π. Round your answer to two decimal places.
What does the fiber in diet pills do? it satisfies a person's normal daily fiber requirement. it has been clinically demonstrated to facilitate weight loss. it
Children with visual impairments tend to be more _______ in social environments.        A. aggressive   B. adventurous   C. passive   D. demanding
a triangle brace has an angle measure of 92 degrees, with a side opposite this angle measuring 10 inches. the base of the triangular brace, which is adjacent to
Driving a motor vehicle is __________
What url should mrs. jones give her students if she wanted them to be able to search for more resources?
URGENT PLZ HELP!!!!!