Forward slashes? Writing an operation

The Problem.
A for loop header that uses a counter variable has the form for (int i = 0; i < n; i++) Declare a counter variable i and rewrite the for loop header using the operators for the counter class.

This is a sample I got that should be a good starting point, but I'm not sure how to go about writing the operation, all of the forward slashes are throwing me off, I cant seem to find anything about it in my book. Is that just a stand in for something else? Thanks


1
2
3
4
5
6
7
8
9
10
11
int i=0;
while(i<n)
{
////////
/////////
///// (do operation whatever you want)
////
///////////////
////////
i++;
}
Two forward slashes after each other means that the rest of the line is a comment and will be ignored by the compiler. They probably mean that you should replace the comments with code to do whatever you want to do.
thats what i was thinking, i just didnt know why they didnt just use 2
thanks
Topic archived. No new replies allowed.