87. 조합 재귀의 결과와 호출 횟수
다음 Java 프로그램의 실행 결과를 쓰시오.
1public class Main {2static int calls = 0;34static int comb(int n, int r) {5calls++;6if (r == 0 || r == n) {7return 1;8}9return comb(n - 1, r - 1) + comb(n - 1, r);10}1112public static void main(String[] args) {13int a = comb(4, 2);14System.out.println(a + " " + calls);15}16}