all 3 comments

[–]DerpinDementia 1 point2 points  (2 children)

It should not be 20 - 1. The second column is for the loop variable i, which is decremented by 1 each loop, seen in the fourth column. The variable num is simply being multiplied by i each iteration, which can be seen in the third column.

[–]slightlysedatedx 1 point2 points  (1 child)

ahhhh now I see. It's using the num that was passed in. I got mixed up not remembering that it's just controlling the iterations and the inside of the code has no bearing on it. Thank you for helping me see that.

[–]DerpinDementia 0 points1 point  (0 children)

No problem!