vd17accc
Search for a command to run...
Write a function that takes an array of integers as input and returns the sum of all its elements.
Input: [1,2,3,4,5]
Output: 15
Example 1
[1,2,3]
6
Example 2
[-1,0,1]
0