I need to do a do-while loop as my for loops keep track of the numbers. Example: How many numbers would you like? 7
1, 2, 3, 4, 5, 6, 7
How many more numbers would you like? 8
8, 9, 10, 11, 12, 13, 14, 15.
and so on...
Just not sure where and how to put the loop.
You can use a dynamic array to store the user's input in.
Using a dynamic array you can declare something like int *array which is a pointer. Then you prompt the user for their input, for example
1 2 3 4 5 6 7 8
cout<<"How many numbers would you like? ";
cin>>number;
array=newint[number];
cout<<"Please enter your number(s): ";
for(i=0; i<number; i++)
{
cin>>number[i];
}