why is it that critical counter variable be properly initialized?
The for loop. 8. A counter variable is used to control or keep track of the number of times a loop. iterates. In a loop, the counter is usually incremented or decremented. If the. counter variable is not properly initialized, it will not hold the correct number. 9. An accumulator is used to keep a running total of numbers. In a loop, a value is. usually added to the current value of the accumulator.