#8 - Sum of Elements in the Array
Example 1
Input:
arr = [12, 5, 8, 23, 17, 9]
Output:
Sum = 64
Example 2
Input:
arr = [12, -1 , 10]
Output:
Sum = 21
Last updated
arr = [12, 5, 8, 23, 17, 9]
Sum = 64
arr = [12, -1 , 10]
Sum = 21
Last updated