Sum of numbers

First read how many numbers follow, then read that many whole numbers and print their sum. For the input 3 followed by 10 20 30, print 60.

Keep the running total in a variable that starts at 0, and add each number to it inside the loop.

Tests
Results will be shown here
C++
Console
Press Run to start your program.