What are counters and accumulators?
Answers
Answered by
0
Answer:
Accumulators. Accumulators are identical to counters with one difference. While they must have both an initial value and an incremental value; the incremental value is determined by a variable. Accumulators are used to keep a running total of numbers during successive passes through a loop
if you understand the answer please mark the answer is brilliant answer
Answered by
1
Answer:
Counter and Accumulator Variables
1 Counters. A counter variable has the purpose of storing the number of times that some condition occurs in the algorithm. Note. ...
2 Accumulators. An accumulator variable stores partial results of repeated additions to it. The value added is normally that of another variable.
Similar questions