int recurse_perm(int n) { if (n == 1){ return 1; } int sum = 1; for(int i=n; i>1; i--){ sum+=1; recurse_perm(n+1)+recurse_perm(n); } return sum; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)