Skip to content

Instantly share code, notes, and snippets.

@ysnerdem
Last active March 22, 2018 13:54
Show Gist options
  • Save ysnerdem/a655edc7b4cf2b887fbebbef15c77b0f to your computer and use it in GitHub Desktop.
Save ysnerdem/a655edc7b4cf2b887fbebbef15c77b0f to your computer and use it in GitHub Desktop.
def ekok(num1, num2):
x = num1
while True:
x += num1
if x % num2 == 0 and x > num2:
return x
print("**ekok**")
num1 = int(input("1.sayı:"))
num2 = int(input("2.sayı:"))
print("{} ve {} sayısının en küçük ortak katı: {}".format(num1, num2, ekok(num1, num2)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment