i need a help on how to add the value of an array to another value of an array?
i dont need the whole program.. i just want to know what will i do in order to add the 4 values of an array using the for loop statement.
for example :
array[4]={12,5,2,1};
if i do it manually i guess i just write this..
sum= array[0]+array[1]+array[2]+array[3];
the output will be:
20
and i guess that's not the best idea to add those values of an array..