각 ¶
감 ¶
LITTEL AOI 거꾸 갈고
감 ㅠ
고까 ; 각
금 ..;; 50 25 게 ㅠㅠ
;
거 거 ㅠ
감 ㅠ
¶
~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;
}










