#include using namespace std; int main() { int start; int stop; int copiesRequested; int printNum; int copiesMade = 0; // get inputs from user cout << "Enter a starting number: "; cin >> start; cout << "Enter an ending number: "; cin >> stop; cout << "How many copies do you want? "; cin >> copiesRequested; // check the inputs if (start <= stop) { while (copiesMade < copiesRequested) { // print the numbers from start to stop printNum = start; while (printNum <= stop) { cout << printNum << " "; printNum = printNum + 1; } cout << endl; copiesMade = copiesMade + 1; } } else { // inputs were defective ... cout << "The starting number must be <= ending number." << endl; } }