DEV Community

PERUMAL S
PERUMAL S

Posted on

TASK 3-Q2

Write a program that takes an integer as input and checks if it is even or odd

a= int(input("type your number:"))
if ((a%2)==0):
print("your number is even:")
else:
print("your number is odd:")

Top comments (0)