sarahalbaloushi sarahalbaloushi
  • 16-08-2021
  • Computers and Technology
contestada

write a program to check whether the number is odd or even using 'if' statement in python

Respuesta :

belongtoinsarifamily
belongtoinsarifamily belongtoinsarifamily
  • 16-08-2021

Answer:

Python Program to Check if a Number is Odd or Even :

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

s2=81 solve right answers please really need help
Is 1/4 and 4/16 an equivalent fraction? If so why ?
Find the slope, x-intercept and y-intercept of the graph of the equation. Write the equation in slope-intercept form. 3x − 4y = 12
What formal command would you use with your teacher for the verb cubrir A.Cubre B.Cubras C.Cubra D.Cubres
In the formula for density the m is for:​
Use mental math to solve the equation b + (-2) = 0.
How did the war powers act of 1941 affect Asian Americans? In your own opinion, how should civil rights and national security be balanced in a case like this?
What is the square root of 289??
Which Reconstruction leader believed that preservation of the Union was more important than punishing the South?*
what type of margin does an apple plant leaf have?​