{Code} Need help figuring out this For LOOP

Hi guys trying to slove this For Loop assignment:
The loop will start at 1 and increment by 1 until the counter exceeds 100. The loop will then stop at that point. We can substitute variables for the start and stop numeric constant values such as:
for (n = 1; n <= NumberofTimes; n++)
{
Lines of Loop code;
}
This Lab Assignment will allow the user to:
1. Enter a positive number (we will dispense with GIGO code)
2. Run a For Loop from 1 to N times keeping a running count of the loop iteration values (i.e. 1 + 2 + 3 + 4 + 5 +

HAVING A LITTLE TROUBLE TRYING TO HAVE THE VALUES INCRIMENT SUCH AS 1+2+3+4

#include <conio.h>
#include <iostream>
using namespace std;

int main()
{
int n;
int NumberofTimes;


for (n=1;n<=NumberofTimes;n++)
{
n = n=1 + NumberofTimes;
cout << "Allow the user to enter a positive number: ";
cin >> NumberofTimes;
n++;


}





return 0;


}


Topic archived. No new replies allowed.