Lessons
C++ · Searching and Sorting · 37. Prefix Sums
step 1 of 6
A running total
I walk the list and keep a running total: after each number I add it on and show the sum so far.
Mission
Add 10 to the end of the list and RUN.
PIP·1
main.cppyour code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
← press me!
Press RUN to see what this program does.