Naming Variables With Other Variables
in
Programming Questions
•
1 year ago
I have a for loop that makes the variable i go up by 1 every time it runs. I want to save the variable x every time the for loop runs, for example, when i = 1, the variable would be x1, when i=3, the variable is x3. But I can't get this to work. Any tips? Thanks.
1