r/AskProgramming • • Oct 11 '26

For loop

How would I store 3 different answers to the same 3 questions asked using a for loop. I know how to store one answer, but not all three while still using the for loop

0 Upvotes

13 comments sorted by

View all comments

3

u/Previous-Mail7343 Oct 11 '26

An array, or a collection of some kind depending on what you are storing and how you are using it