recursion.com code example
Example 1: recursion
int function(int value) {
if(value < 1)
return;
function(value - 1);
printf("%d ",value);
}
Example 2: recursion
def recursive_function(parameters):
if base_case_condition(parameters):
return base_case_value
recursive_function(modified_parameters)