|
|
|
|
Getpower(n,power-1)
. Therefore you've told power to decrement but you have not told n to increment. Where the incrementation occurs here is in the return
statement. That's where you multiply n by the last value. In the snippet above you'll see the incrementation happen in newVal
.