Python Program to Check if Given Number is Odd or Even
Write Python Program to Check if Given Number is Odd or Even
# Python Program to Check if Given Number is Odd or Even n = int(input("Enter the number :--> ")) if n % 2 == 0: print("The given number is EVEN") else: print("The given number is ODD")
Output:
Run 1:
Enter the number :--> 67
The given number is ODD
Run 2:
Enter the number :--> 50
The given number is EVEN