➽ Program:-
num = int(input("Enter a Number:
"))
if(num%2 == 0):
print("{0} is an even number".format(num))
else:
print("{0} is an odd number".format(num))
➽ Output:-
Enter a Number: 50
50 is an even number
Enter a Number: 99
99 is an odd number
0 Comments
Please do not enter any spam link in the comment section.