Computer Science, asked by Anonymous, 10 months ago

write a program to check whether the no. is even or odd in python​

Answers

Answered by Anonymous
20

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))

If It helps mark as brainliest

Answered by simran7539
8

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))
Similar questions