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

What are two theories about migration to the Americas?
A dozen eggs costs $1.29. Find the cost for 4 eggs.
Nelson's hobby is tinkering with small appliances. Tinkering with implies that Nelson is unskilled at his hobby. You want to change the flavor of this sentence
Algol the Sun Alpha Centauri Polaris the Big Dipper which is a binary star
What group eventually conquered the empire established by the Seljuk Turks?
Civilizations in the Americas and sub-Saharan Africa were isolated from Eurasia mostly because of
When President Clinton was elected to a second term in 1996,
A rectangle has an area of 56 square centimeters it's length is 8 centimeters what's the width
Mark the four sentences that are true. 1.The Republican Party began as a series of anti-slavery political meetings held in the Midwest in 1854. 2.Rural areas te
8251 is 127% of what number