Sorry! Posting Assignment is allowed only for commercial accounts.
int f(int&x, int c) {c = c - 1;if (c == 0) return 1; x = x + 1;return f(x, c) * x;}