int get_number (int min, int max)
{ int number;
do
{ cout << "Enter a number between " << min << " and " << max;
cin >> number;
if (number < min || number > max)
cout << "Out of range. Try again:" << endl;
}
while (number < min || number > max);
return number;
}