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

If granite is subjected to high temperatures and high pressures deep within Earth, but does not melt, what type of rock will be formed? sedimentary igneou
Can someone please help me SIMPLIFY #30 and #31 ????
HELLO PLEASE SOMEONE HELP!!!! PUT EVENTS IN THE CORRECT ORDER I WILL GIVE BRAINLIEST IF 2 PPL ANSWER
A patient receives an injection of 2.0 ml of anesthetic. what is the equivalent of this volume in cubic centimeters? a.0.020 cm3 b.0.20 cm3 c.0.002 cm3 d.20 cm3
A medication is given at a dosage of 3.000 mg of medication per kg of body weight. If 0.1700 g of medication is given, then what was the patient’s weight in pou
Will give brainliest answer
Including the soviet union list two European countries in the communist bloc
how do limiting factors influence each other
Anna is a 3-year-old child who will only eat bananas, peanut butter and jelly sandwiches, and chicken nuggets. her mother is frustrated because she will not try
what type of government and divisions does venezuela have ?