
#include <iostream>
#include <conio.h>
using namespace std;
void main()
{
int n1,n2;
cout << "Enter 1st Number: ";
cin >> n1;
cout << "Enter 2nd Number: ";
cin >> n2;
for(int x = n1;x<=n2;x++) //Initialize x to the number stored in n1. Then loop while x is less than or equal to the number stored in n2. (x++ increments the value of x after each iteration.
{
cout << "Number is: " << x << endl;
}
_getch();
}