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

Explain why an autopsy is performed even when a death is not suspicious.
Please help picture shown Algebra 2
the sum of two consecutive even integers is -298. what are the integers?
How does multitasking confuse the resource availability of project team personnel?
Describe the point at which the kinetic energy of the pendulum is the highest
What is the mood of the following passage? Rikki-tikki knew that he must catch her, or all the trouble would begin again. She headed straight for the long gras
linear inequality of 4w-6>6w-20
the area of a rectangular pyramid is 65yd^2. the length of the playground is 3 yards longer than twice it's width. find the length and the width of the playgrou
Tres mineros,A,B,C.con cargas de 40,50 y 90 kg, respectivamente , se disponen a cruzar el rio. Se sabe que el bote solo puede transportar a dos personas o a un
The Sex Equity in Education Act requires educational institutions to distribute a sexual harassment policy to: A._ faculty and parents. B._parents and adminis