n1 = int(input("Enter number one: ")) n2 = int(input("Enter number two: ")) if n2 % n1 == 0: print(n2, "is a multiple of", n1) elif n1 % n2 == 0: print(n2, "is a factor of", n1) else: print(n1, "and", n2, "are neither a factor or a multiple of each other") #works