A variable used in a loop to count the number of times something happened. We initialize a counter to zero then increment the counter each time we want to βcountβ something.
If youβre stuck, look above for the definitions of these terms! Try again.
accumulator
A variable used in a loop to add up or accumulate a result.
loop counter
A variable used in a loop to count the number of times something happened. We initialize a counter to zero and then increment the counter each time we want to "count" something.
decrement
To decrease the value of a variable (often by one).
increment
To increase the value of a variable (often by one).