Oct-16-2022, 06:35 PM
(This post was last modified: Oct-16-2022, 06:35 PM by astral_travel.)
Yoriz thank you very much for the code visualizer, it helps allot !
ndc, what i don't understand is the "game" of numbers that runs in the loop,
i don't totally understand the concept of recursion and so it is another subject that i'm having difficulty with...
i don't understand why the output is what it is...
what mostly i'm stuck with is the line:
if k runs 6 times, beginning with 6 - and so it is: 6 + (6-1) (should equal 11...but no 11 in output)
i'm surely missing something here, but i don't know what it is..
ndc, what i don't understand is the "game" of numbers that runs in the loop,
i don't totally understand the concept of recursion and so it is another subject that i'm having difficulty with...
i don't understand why the output is what it is...
what mostly i'm stuck with is the line:
result = k + tri_recursion(k - 1)
if k runs 6 times, beginning with 6 - and so it is: 6 + (6-1) (should equal 11...but no 11 in output)
i'm surely missing something here, but i don't know what it is..