Skip to content

Instantly share code, notes, and snippets.

@ysnerdem
Last active March 22, 2018 10:44
Show Gist options
  • Save ysnerdem/7529d78781f9a6d1ee728314587d512b to your computer and use it in GitHub Desktop.
Save ysnerdem/7529d78781f9a6d1ee728314587d512b to your computer and use it in GitHub Desktop.
def ebob(num1,num2):
lst = []
max = 0
for i in range(1,num1):
if num1 % i == 0 and num2 % i == 0:
lst.append(i)
for i in lst:
if i > max:
max = i
return max
num1 = int(input("1.sayi:"))
num2 = int(input("2.sayi:"))
print(ebob(num1, num2))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment