I'm currently playing with recursive functions and I have a question.
I don't understand why this one work
a, b = map(int, input().split())
def gcd(a,b):
if a%b == 0:
return b
else:
return gcd(b,a%b)
print(gcd(a,b))
but this one doesn't
a, b = map(int, input().split())
def gcd(a,b):
if a%b == 0:
return b
gcd(b,a%b)
print(gcd(a,b))