~cpp #include <iostream.h> int num_ret(int X, int Y) //재귀호출 1인경우(X=1,X=Y)엔 1을 리턴하는방식 if (X==1 || X==Y){ return 1; } else{ return num_ret(X-1,Y-1)+ num_ret(X,Y-1); } } void main() { int X,Y; cout << "===== △파스칼의 삼각형△ =====" << endl; cout << "행을 입력해주세요 : " ; cin >> Y ; do{ cout << "열을 입력해주세요(1~" << Y << ") : " ; cin >> X ; }while(X > Y) ; cout << num_ret(X,Y) <<"입니다! ㅋㅋ" << endl; }