Loop variable (counter): A variable that tracks the current iteration, typically incremented each time through the loop.
How to apply it: Trace the counter's value at each iteration to predict the loop's output.
Course: AP Computer Science A · Unit: Iteration
Practice questions about Loop variable (counter) on AimFive — get rubric-based feedback showing exactly which points you earned.
AP and Advanced Placement are trademarks of College Board. AimFive is not affiliated with or endorsed by College Board.