Computer Science for IGCSE & O level - Algorithm Design And Problem Solving (Section 9 - No. 45)

In the 'totaling' algorithm, what variable is typically initialized before the loop starts?
A variable to hold a temporary value.
A variable to store the final total.
The control variable for a loop.
A variable to represent data.

Explanation

To perform totaling, you must initialize a variable before performing the operation.

Comments (0)

Advertisement