Sum of Array Elements Problem

Sum of Array Elements Problem — ExecCode School DSA Practice

Solve the Sum of 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 Array Elements. Add all of them together and print the total.

Examples

Input 1 10; Output 10. Input 2 5 5; Output 10

Constraints

1 <= N <= 1000 -10^6 <= Array Element <= 10^6

Practice Sum of Array Elements free on ExecCode. Browse DSA problems, topic map, and placement guides.