0

I would like to sum consecutive numbers in an array of 7 numbers with the summing beginning from the second number, such as {1, 9, 8, 9, 9, 9, 9} would store {1, 17, 18, 18}. This is the code I have so far but it's not quite right because int j = i causes only the first and third indices to chang...