Hi, I got an assignment that I need some help with? I need to include this for loop in a program and it should excuted 10 times. I'm noy sure what the 'X' means. and where to start when including it in a program. Any guide lines?
The code I gave above isn't the full source code, just a portion of the code that has the for loop. I can't do all of your homework for you. I can only help you with your problems that you are having. If this is the case, your code should be something like this:
1 2 3 4 5 6 7 8 9
// Your includes
int n = 10;
for (int i = 1; i <= n; i = i + 3)
cout << 'X';