Hi, need help with an assignment. Here is the problem and the code the I came up with.
It displays the start and the end but it does not display the numbers in between. Thanks in advance. ;)
//create a C++ program that will accept 2 numbers: (Start Number and End Number)
//then display all numbers from the Start Number up to the End Number.
#include<iostream>
using namespace std;
int main ()
{
int x=0, y=1;
for (int i=0; i<=10; i++)
{
cout<<"Enter START number -->";
cin>>x;
cout<<endl;
x=x+i;
for (int j=0; j<=10; j++)
{
cout<<"Enter END number -->";
cin>>y;
cout<<endl;
y=y+j;
}
cout<<endl;
}
system ("pause");
return 0;
}