Program to insert a number from the user and tells the number is odd or even

Program to insert a number from the user and tells the number is odd or even

source code

print('Program to insert a number from the user and tells the number is odd or even')
a = int(input('Enter a number = '))
print('your entered number is ',a)
if a%2==0:
    print("The entered number is even")
else:
    
    print("The entered number is odd")

Comments

Popular posts from this blog

Addition of two numbers in python