Read numbers from the user one at a time. When the user types 0, stop and print the sum.
0
Example:
Input:
3 5 7 0
Output:
15