user
Task: Document the following algorithm into pseudo-code.

1. Start
2. Read in a list of numbers
3. Calculate the sum of all the numbers
4. Print out the result
5. End

Answer:
assistant
Start
for each number in list
   add number to sum
end for
print sum
End