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

How many acts did Congress pass during FDR's Hundred Days? a) 50 b) 100 c) 200 d) 500
A patent gives a firm the power to charge a price that: a) Is below equilibrium b) Is higher than marginal cost c) Increases the consumer surplus d) Results in
Where are provisions for the county government found? 1) The city bylaws 2) The state constitution 3) The county mandate 4) The federal constitution
itochondrial activity in skeletal muscle cells are usually efficient, but cna have limited ATP production if:______There is pyruvic acid accumulationThere is li
What is the formula for finding cerebral perfusion pressure (CPP)?
What is the starting point for making plans to bring an emergency situation under control? a) Mobilization b) Assessment c) Triage d) Command
If someone is waiting at a pedestrian crossing and standing on the pavement, what should be your response?
According to Mill, his opponents liken his philosophy to which animal?
If a child has myopia at age 5, will his myopia likely increase as he gets older? 1) True 2) False
Seleccionar el.camino más.corto