Ch. 5.7: Keep a Running Total Flashcards

1
Q

What is a running total?

A

A running total is a sum of numbers that accumulates with each iteration of a loop. The variable used to keep the running total is called an accumulator.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is an accumulator?

A

It is often said that the loop keeps a running total because it accumulates the total as it reads each number in the series.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly