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")
Strictly Necessary Cookie should be enabled at all times so that we can save your preferences for cookie settings.
If you disable this cookie, we will not be able to save your preferences. This means that every time you visit this website you will need to enable or disable cookies again.