Coin Pile (Arrays & Lists)

Read n, then n integers. Print their sum.

Input: n on the first line, then the numbers.

Output: The sum.

Difficulty: Easy. Write your answer in the browser editor, run the examples, then submit it against hidden tests. Python and JavaScript are free; other languages are part of licode Club.

Hint

  • Read all numbers into a list first, then add them up.

More Arrays & Lists practice