M = int(input("Enter a number: ")) N = int(input("Enter another number: ")) if M < N: temp = M M = N N = temp while N > 0: R = M % N M = N N = R print("The answer is", M)