#include<iostream>
using namespace std;

// I probably use a few more comments
// than necessary in this code


int main()
{
 // Start sum as 0
 int num, sum=0;

 // Get first number
 cout << "Give me a number: ";
 cin >> num;

 // Add to sum
 sum += num;

 while(num!=0) // while user input is not 0
 {
   // Report current sum
   cout << "Current sum: " << sum << endl;

   // Get new number
   cout << "Give me a number: ";
   cin >> num;

   // Add to sum
   sum += num;
 }

 return 0;
}