please

i have a question how does this line work out
//(base * recursive(base, total -1);//
im confuse because you have 2 arguments first is base and second is total which is decremented by 1 everytime you make a recursive call, how does that work out do the arguments gets add or multiply to give a certain value to the recursive function? i dont know please

1
2
3
4
5
6
7
8
int recursive(int base,int total)
{
	if (total <= 1)
            return total;

	return (base * recursive(base, total -1);
	
}
its base^total =

(base*(base*(base*(......) ) ) )
Topic archived. No new replies allowed.