#include<iostream>
using namespace std;

int main()
{
 // Declare variables
 int inputNum, sum=0;

 // Get new input number
 cout << "Enter new number: ";
 cin >> inputNum;

 // Add input to running sum
 sum += inputNum;

 // Keep looping while inputNum is not zero
 while(inputNum!=0)
 {
   cout << "Sum is " << sum << endl;

   // Get new input number
   cout << "Enter new number: ";
   cin >> inputNum;

   // Add input to running sum
   sum += inputNum;

 }

 return 0;
}