Blake
❔ Array confusion..
I'm trying to figure out how to choose a set amount of values from an array without using all the values in it at once.
for example if I have
int[] X = new int[] { 1, 2, 3, 4, 5, 6, 7};
and I wanted to get the sum of only the first 5 values in the array, how do I do that?
hopefully I explained it well enough cuz I wasn't able to put my problem into the correct words and find the answer through google lol...
8 replies