// Soln3_1A.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"; cin >> val; while (val != 0) { total += val; cin >> val; } cout << "\nThank you. The total was " << total; cout << endl; return 0; }