Answer:
Start a for loop from index 0 to the length of the array – 1. In every iteration, perform sum = sum + arr[i]. After the termination of the loop, print the value of the sum
Step-by-step explanation:
8.8m questions
11.4m answers