likhitha123456 likhitha123456
  • 17-02-2021
  • Computers and Technology
contestada

Write the Python programs for the
following:
To input a number and check if it is
even or odd number​

Respuesta :

thebegginer
thebegginer thebegginer
  • 25-02-2021

Answer:

num = int(input("Enter a number: "))

if (num % 2) == 0:

print("{0} is Even number". format(num))

else:

print("{0} is Odd number". format(num))

Answer Link

Otras preguntas

help me in this problem
At a gymnastics competition. 3/10 of the gymnasts won a ribbon. what percent of the gymnasts won ribbon?
Jenny picked 25 roses. she gave away 10 roses. What percent of the roses did Jenny give away?
what sorts of things do people need to be able to move
which of the following is not something Napoleon did to help France wage war and win territory? A. he relied on the mandatory military service of French citize
a water wheel makes 28 revolutions in 90 seconds. how many revolutions can it make in 4 minutes?
what dose the leftover of the exploded star produce
Which of the following is true about calories? A) Calories are measured by density B) They are one of the basic nutrient groups C) Young children need more ca
9.   Why does the Central Intelligence Agency have more freedom of action than other federal agencies?A. It answers to Congress only for its financial needs.B.
How does the presence of entrepreneurs help a country's economy?