Engineering Note

유클리드 호재법 본문

Computer Science/Data Structure & Algorithm

유클리드 호재법

Software Engineer Kim 2021. 6. 30. 15:28
def gcd(a,b):
        if b == 0:
            return a
        else:
            return gcd(b, a % b)


print(gcd(35,14))
Comments