Write a program to find the sum of all elements in an array.
EasyProblem Statement
Write a program to find the sum of all elements in an array.
Sample Input
[1, 2, 3, 4, 5]
Sample Output
Sum: 15
Limits
Time: 2s · Memory: 256 MB
Write a program to find the sum of all elements in an array.
[1, 2, 3, 4, 5]
Sum: 15
Time: 2s · Memory: 256 MB