Why don't you show us how you want to use the variables you define? You mention that you are thinking of a loop; an array is the proper data structure for loops, single variables are, by contrast, not. That's often the first step when somebody learns to code: Use an array instead of single variables, and loop over it instead of repeating the same code n times for each single variable.
↧