Comment on Why does the for loop repeat in this recursion?
milon@lemm.ee 10 months agoYes, that helps. Thanks. I see now how n goes from 1 to 2 to 3…etc. Now not so sure how i = 1 when the for loop starts.
Comment on Why does the for loop repeat in this recursion?
milon@lemm.ee 10 months agoYes, that helps. Thanks. I see now how n goes from 1 to 2 to 3…etc. Now not so sure how i = 1 when the for loop starts.
Merwyn@sh.itjust.works 10 months ago
When called with n=1 ? It’s from i=0 to i<1, so it will do only one iteration with i=0 and print one #.