r/shittyprogramming • • Apr 15 '19

this good code? Is

Post image
308 Upvotes

51 comments sorted by

View all comments

Show parent comment

39

u/down_vote_magnet Apr 15 '19

That's the whole point of using the loop. You get the number in each iteration of the loop and plug it into your function call.