Write a python program that reads an integer and prints back the given integer if it is a multiple of 2 and 5 otherwise print " Not a multiple of 2 and 4".
1
Expert's answer
2021-08-11T14:11:51-0400
n = int(input())
if n % 2 or n % 5:
print('Not a multiple of 2 and 5')
else:
print(n)
Comments
Leave a comment