Comment on Why does the for loop repeat in this recursion?

<- View Parent
dneaves@lemmy.world ⁨10⁩ ⁨months⁩ ago

i starts at 0, checks if i is less than n (the first time it will be, no matter what), prints a “#”, then increments i by 1 and loops

source
Sort:hotnewtop