initial commit
This commit is contained in:
commit
39f56a3b10
83 files changed
+3583
No files matched your search
@@ -0,0 +1,17 @@
|
||||
def gcd():
|
||||
i1 = int(input("enter first number : "))
|
||||
i2 = int(input("enter second number : "))
|
||||
|
||||
while True:
|
||||
i1 // i2
|
||||
r = i1 % i2
|
||||
|
||||
if r == 0:
|
||||
print(f"GCD= {i2}")
|
||||
break
|
||||
|
||||
else:
|
||||
i1 = i2
|
||||
i2 = r
|
||||
|
||||
gcd()
|
||||
Reference in new issue
Block a user