Program to find sum of elements in a given array.
Difficulty Level : Easy Last Updated : 04 Oct, 2021
Problem Statement: Given an array of integers, find sum of its elements.
Example 1 : Input : arr[] = {1, 2, 3} Output : 6
Explanation: 1 + 2 + 3 = 6
Example 2: Input : arr[] = {15, 12, 13, 10} Output : 50