6.8. Glossary

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 then increment the counter each time we want to “count” something.

Decrement

To decrease the value of a variable (often by one).

Initialize

To give an initial value to a variable that will be updated.

Increment

To increase the value of a variable (often by one).

Infinite Loop

A loop in which the terminating condition is never satisfied or for which there is no terminating condition.

Iteration

One repeated execution of a set of statements using either a function that calls itself or a loop.

Before you keep reading...

Runestone Academy can only continue if we get support from individuals like you. As a student you are well aware of the high cost of textbooks. Our mission is to provide great books to you for free, but we ask that you consider a $10 donation, more if you can or less if $10 is a burden.

You have attempted 1 of 3 activities on this page