Hi all,
Class assignment is to list all numbers between user input.
I have this much, but have no idea how to get it to list the numbers between them. I know this is simple, but it still eludes me ;)
Thanks in advance!
#include <iostream>
using namespace std;
int main ()
{
int x, y;
cout << "Please key in a start number: "; cout <<endl;
cin >> x;
cout << endl;
cout << "Please key in an end number: "; cout << endl;
cin >> y;
while (x < y)
x = x + 1;
cout << x;
cout << endl << endl;
system ("PAUSE");
return 0;
}