// nested if statements #include #include using namespace std; int main() { int menuChoice = 0; int numBooks = 0; cout << "1 Books" << endl; cout << "2 Movies" << endl; cout << "3 Peanuts" << endl; cout << "4 Checkout" << endl; cout << "Enter your choice: "; cin >> menuChoice; if (menuChoice == 1) { cout << "Enter number of books (50 or less): "; cin >> numBooks; if (numBooks > 50 || numBooks < 0) { cout << "Invalid input." << endl; } else { // user inputs quantity of books here // do mathematical calculations here } } system("pause"); return 0; }// end of main