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

Suppose a plant grew 4 1/2 inches one week and 2 3/8 inches the next week. How many inches did it grow during both weeks?
i am a factor of 50 and a multiple of 5. i am a 2-digit number greater than 10 but less than 40. what number am i ?
20. The model of the universe that suggests that the sun is the center of the universe was first brought by A. Copernicus. B. Brahe. C. Ptolemy. D. Kepler.
what is the value of the 8 in the decimal 3.872
• Won the presidential election of 1828 • Was seen as a "common man" and represented the expansion of democracy • Filled government positions with people from h
What does "arbeit macht frei" means
draw and write the correct expression for the sum of 7 fifteens and 38 fifteens
What is the answer to g+5=g-2
Each side length of the parallelogram at the right is multiplied by four. Describe the change in the perimeter.
6. What three types of land are best suited for agriculture? A. Swamplands, forests, and steppes B. Alluvial plains, prairies, and uplands C. Swamplands, alluvi