結果 : write ac program to calculate the sum of all elements in an array using a function