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 type of sentence is this??
Show how to convert the temperature 84.7° C to Kelvin. Please include all steps and label the final answer.
What is the main reason why the author includes this information in the article?
During the 1920s, which presidents adopted a laisse-faire towards business, which helped bring about the great depression?Woodrow Wilson Warren Harding Calvin
Which of two curves exhibits exponential growth
Which network media uses different regions of the electromagnetic spectrum to transmit signals through air? ____________ uses different regions of the electroma
Which one of the following is true of tRNAs? a) tRNAs are double-stranded. b) Each tRNA binds a particular amino acid. c) There are four types of tRNA. d) tRNAs
Four students found the mean of the data set 26, 31, 39, 30, 16, 16, 18, 38. Which student found the correct mean? Ashrita's work 26 +31 +39+30+ 16 + 16+ 18+ 3
The image of a transformation is the original figure before the transformation is performed. Please select the best answer from the choices provided T F
a quantity, t, varies inversely with a quantity, r. if t=6, then r=5 what is the constant of variation