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

Tyler is simplifying the expression 6 − 2 + 5 + 4. Here is his work: 6 − 2 + 5 + 4 (6 − 2) + (5 + 4) 4 + 9 13 PLSSS HELP ASAP I HAVE A TEST
Please select the correct definition for the given word. Mexican economic independence
Five independent measurements are made of the diameter of a cylinder. Results, in mm, are: 21.8; 21.6; 22.1; 21.9; 22.1. What should be the reported value of th
Pleaseee help P L E A S E
hud was a government agency whose goal was to
How energy resources have negatively impacted the environment?
It is acceptable to allow up to eight hours for cooling food from 135 to 70 degrees F. False True
Why does the bank generally print the address of the check writer on the upper left hand corner of the check?
Which of the following best describes gravitational potential energy, O The energy stored in an object when you lift it, O The energy stored in an object due to
HELP PLEASE WILL MARK BRANIEST IF RIGHT