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

What is the role of the variable `Total` in the totaling algorithm?
Store the final total of the marks.
To keep track of the current number of marks.
To store each mark read from the input.
To represent the variable.

Explanation

The total stores the sum as values are added in the loop.

Comments (0)

Advertisement