Question #225385

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".

Expert's answer

n = int(input())
if n % 2 or n % 5:
    print('Not a multiple of 2 and 5')
else:
    print(n)
LATEST TUTORIALS
APPROVED BY CLIENTS