Check this out:
Code:
#include <iostream>
using namespace std;
int main()
{
    int n1, n2;

    cout << "Please enter a number: " << endl;
    cin >> n1;
    cout << "Please enter a larger number: " << endl;
    cin >> n2;

    if (n1 >= n2)
    {
        cout << "Pleas enter a new value for your first value.";
        cin >> n1;
    }

    for (int i = n1 + 1; i <= n2; i++)
    {
        cout << i << " ";
    }
    return 0;
}