Running total
Build one answer out of many passes through a loop.
What to do
Add up every whole number from 1 to 10, then show the total once, at the end.
Only one line of output. The answer is 55 -- but write the loop rather than the number.
Your code Read-only reference Pseudocode
Output
Press Run to see what your code does.
Stuck on the idea rather than the typing? The lesson behind this set is Loops & Repetition on Learn to Write Code.