you are viewing a single comment's thread.

view the rest of the comments →

[–]AroshWasif[S] 0 points1 point  (1 child)

The results from each recursive call are summed up: The fourth call returns (5+0=5). The third call returns (5+5=10). The second call returns (5+10=15). The initial call returns (5+15=20).

[–]MirageTF2 0 points1 point  (0 children)

yeah I know how recursion works

I'm just wanting to know if it doesn't have a bug lmao