Sum of All Array Elements Problem
Sum of All Array Elements Problem — ExecCode School DSA Practice
Solve the Sum of All Array Elements problem on ExecCode. Free online school DSA practice in Arrays - Basics. Write and run code in Java, C++, Python — no signup required to run.
Problem description
You are given a list of whole numbers. Your task is to solve Sum of All Array Elements. Add every number in the list and print the total.
Examples
Input 5 1 2 3 4 5; Output 15. Input 3 10 20 30; Output 60
Constraints
1 <= n <= 10^5
Practice Sum of All Array Elements free on ExecCode. Browse DSA problems, topic map, and placement guides.