python project to chck whether a number is even or odd

 

INPUT......

print("enter your number")
var=int(input())
if (var % 2) == 0:
print("even")
else:
print("odd")
OUTPUT......
enter your number
56
even

 

 

 

ARIHANT JAIN

i am arihant jain and i am a student

Post a Comment (0)
Previous Post Next Post