/** * 삼각형 번호 : * Bida Costra의 리더십 아래 고대 그리스 수학자들은 흥미로운 디지털 시퀀스 1, 3, 6, 10, 15, 21, ... * 그들이 가진 것을 볼 수 있습니다. 정기적인? * 법은 f (x) = x+ f (x-1)입니다. public static void main (String [] args) {triangle triangle = int result = triangle.getValue (100); n* @return의 삼각형 디지털 값*/ public int getValue (int n) {if (n == 1) {return 1;} else {return n + getValue (n -1);}}}}