loopvariable
nounUK /ˈluːp ˈveəriəbl/
US /ˈluːp ˈveriəbl/
A loop variable is a name that keeps track of which step you are on in a repeating set of steps.
In the loop, the loop variable i goes from 1 to 10, one number at a time.
RELATED WORDS
OTHER MEANINGS
2. In some programming languages, a loop variable is the variable declared in the loop header that takes each value from a sequence.
The for loop variable item takes each fruit in the list in turn.
3. A loop variable can also mean a variable whose value changes each time the loop body runs.
The loop variable total grows by one every time the loop repeats.
4. In mathematics, a loop variable is a dummy variable used to write a repeated sum or product.
In the sum, k is just a loop variable, so its name does not matter.