This is a python program to check if a given number is odd or even .
n=int(input("Enter a number to be check whether it is even or odd :")) if n%2==0: print("Given number is even") else: print("Given number is odd")
Tech Library For Developers
This is a python program to check if a given number is odd or even .
n=int(input("Enter a number to be check whether it is even or odd :")) if n%2==0: print("Given number is even") else: print("Given number is odd")