Thanks Kurt,
Your first response, now that I have had time to absorb, was the best advice. I did not need i. The learning was to have an increment other than the common i++. Below is the final version that gives me the result I was looking for.
Again, thanks,
Dan
Code:
#include <iostream>
#include <string>
using namespace std;
int main()
{
int input;
int input2;
cout << "Hey! Give me a number other than zero!" << "\n";
cin >> input;
if ( input != 0 )
{
while ( 1 )
{
cout << "Hey, Dude! Put in another number and I will add them up. But don't put in a zero or you will be called a Bonehead!" << "\n";
cin >> input2;
if ( input2 == 0 )
{
break;
}
input = input + input2;
cout << "The total of the numbers you gave me is " << input << " !" << "\n";
}
}
cout << "Hey, Bonehead! I said not to put in a 0. Go away!" << "\n";
}