최대 공약수 구하기

최대 공약수를 구하는 코드

int gcd(int a, int b){
    if(b == 0) return a;
    return gcd(b, a % b);
}

활용 문제 프로그래머스 - 숫자 카드 나누기