Lessons
C++ · Text and Array · 22. Working Through an Array
step 1 of 7
Add them all up
To add a whole row, keep a total box at 0. Each turn of the loop, drop the next slot into it.
Mission
Print only Total: 4000, added up by the loop.
PIP·1
main.cppyour code
1
2
3
4
5
6
7
8
9
10
← press me!
Press RUN to see what this program does.