You are on page 1of 1

1/30/23, 9:10 PM Untitled20 - Jupyter Notebook

In [2]:

a=int(input("enter a value: "))


b=int(input("enter b value: "))
def gcd(a, b):
if b == 0:
return a
else:
return gcd(b, a % b)
print(gcd(a,b))

enter a value: 25

enter b value: 10

In [ ]:

localhost:8890/notebooks/Untitled20.ipynb?kernel_name=python3 1/1

You might also like