#include <iostream.h>

void print_numbers(int low, int high);

int main()
{
   int small, large;

   cout << "Enter the smallest number to be printed";
   cin >> small;

   cout << "Enter the largest number to be printed";
   cin >> large;

   print_numbers(small, large);
   return 0;
}

void print_numbers(int low, int high)
{
    for (int i = low; i <= high; i++)
	cout << i << " ";
    cout << endl;
}
