// Soln3_1B.cpp #include using std::cin; using std::cout; using std::endl; int main() { int val, total=0; cout << "Enter numbers, one per line. Enter 0 to end:\n"; do { cin >> val; total += val; } while (val != 0); cout << "\nThank you. The total was " << total; cout << endl; return 0; }