#include #include using namespace std; int main() { int numBooks = 0; // # of books for this order int totalNumBooks = 0; // total # of books ordered by customer while (numBooks >= 0 && numBooks <= 10) { cout << "Enter number of books (-1 to quit): "; cin >> numBooks; if (numBooks == -1) // -1 is sentinel value to exit loop { break; } totalNumBooks += numBooks; } cout << "The total number of books ordered is " << totalNumBooks << endl; system("pause"); return 0; }// end of main