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

The endocrine system acts through chemical messengers called ________. A. Tissue B. Blood cells C. Neurotransmitters D. Hormones
When you subtract one square number from another the answer is 8 what are the two numbers?
For most of the 19th century, which nation was the dominant power in the world? A. Spain B. France C. Germany D. Great Britain
According to the lecture, much of flamenco music is an expression of oppression and
98 prime or composite
Does every distinct factors of 24 have a partner
Could you use the double fact to find the sum for 4+5? Choose yes or no 4+4=8 Yes or no 5+5=10 yes or no 9+9=18 yes or no
The Jones Building has 103 floors with 48 windows on each floor. The Smith Building has 112 floors with 44 windows on each floor. Sixteen window washers have be
isaac used 1/4 of an ounce of nuts to make 1/12 pound of cake
During the Age of Exploration, the Spanish, French, and English all wanted to