Sum of numbers in an array

How would I find the sum of the numbers in an array with an unknown length?

Thanks