Last active
March 22, 2018 10:44
-
-
Save ysnerdem/7529d78781f9a6d1ee728314587d512b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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