I'm trying to figure out a way to find the sum of the values within an array and store it in a variable
Let's say I have an integer array called intPoints(intCounter). The array currently holds the values [1, 2, 3] and I want to add these values and store them in another variable. How would I do this?
Question
Zygar
I'm trying to figure out a way to find the sum of the values within an array and store it in a variable
Let's say I have an integer array called intPoints(intCounter). The array currently holds the values [1, 2, 3] and I want to add these values and store them in another variable. How would I do this?
Thanks in advance.
Link to comment
Share on other sites
12 answers to this question
Recommended Posts