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

how do you say 'im getting over you' in spanish
how do i persuade students to enter the school talent show? i have to write it as an article in the school magazine.
11 times 4 and 1 3rds
Given: L is the midpoint of KM M is the midpoint of LN Prove: KL = MN
name three roles you play in your relationships with others. explain when you play each role.
while your finger is still pushing the coin, there are four forces acting on the coin: what are they?
Venn Diagram: In a school all of the 120 pupils must choose at least one of Archery, Badminton or Cycling. 63 pupils choose archery 62 pupils choose badminton
A packet is dropped from a stationary helicopter, hovering at a height 'h' from the ground level, reaches the ground in 12s. Calculate 1) value of 'h' "displac
name 1 element in the periodic table that sounds like a name
how do you say 'im getting over you' in spanish