if (number > 8 && number < 10) { std::cout << "The number is greater than 8 and less than 10." << std::endl; } else { std::cout << "The number is not in the specified range." << std::endl; } return 0;