Odd-Even number

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

 

%d bloggers like this: