,.
~cpp
#include <iostream>
using namespace std;
int pas(int aCol, int aRow);
void main()
{
int row, col, res;
cout<<"과 : ";
cin >> row >> col;
res = pas(col, row);
cout << res << endl;
}
int pas(int aCol, int aRow)
{
if(aCol == 1 || aCol == aRow)
return 1;
else
return pas(aCol - 1, aRow - 1) + pas(aRow, aCol - 1);
}
¶
- 3 2 값 ?... -










