30.2k views
0 votes
Are there any incremented values from one loop to the next?

What variables may be used to track each loop in the program?

1 Answer

3 votes

Answer:

You can place any expression you'd like in the final expression of the for loop, but it is typically used to update the counter variable.

counter variable is used throughout those parts. That variable keeps track of the current repetition, and is typically named i . The initialization part initializes the counter variable to a starting value.

Step-by-step explanation:

User Ivan Kolesnikov
by
7.3k points