This is a basic program which checks whether the number is Even or Odd.
PROGRAM :
OUTPUT :
Similar Programs :
C Program to find whether a number is EVEN or ODD
Cpp Program to find whether a number is EVEN or ODD
Java Program to find whether a number is EVEN or ODD
PROGRAM :
num = int(input('Enter a number: ')) if(num % 2 ==0): print(num , "is EVEN") else: print(num , "is ODD")
OUTPUT :
Python - Even or Odd |
Python - Even or Odd |
Similar Programs :
C Program to find whether a number is EVEN or ODD
Cpp Program to find whether a number is EVEN or ODD
Java Program to find whether a number is EVEN or ODD