Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Without recursion implementation to demonstrate how recursion unfolds.
int factorial_1() {
return 1;
int factorial_2() {
int fact_1 = factorial_1();
return 2 * fact_1;
int factorial_3() {
int fact_2 = factorial_2();
return 3 * fact_2;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.