code question

Hi, I just learned about looping in c++. I came across the following problem:
Write a program that asks the user to type in numbers. After each entry, the program should report the cumulative sum of the entries to date. The program should terminate when the user enters 0.