You could need to declare a variable to hold the sum , ie. int sum=0;

Then use a for loop to go through the elements of the array, and add it to sum.

As such,


for(int i=0; i < array_size;...