Find the sum of all elements of a sequence, ending with the number 0.
The number 0 itself is not included into the sequence and serves as a sign of cessation.
Find the sum of all elements of a sequence, ending with the number 0.
The number 0 itself is not included into the sequence and serves as a sign of cessation.
Sample Input 1:
3
6
8
0Sample Output 1:
17Create a free account to access the full topic