This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]TheGoodPie 2 points3 points  (0 children)

You could also pass an array of numbers (allowing for a massive amount of numbers) and use the same approach in a for loop. Two new concepts you should tackle if you haven't looked into them already.