Computer Science for IGCSE & O level - Programming (Section 11 - No. 14)

In the totaling example, how does the code update the total weight?
By assigning the current Weight to TotalWeight.
By subtracting the Weight from the TotalWeight.
By adding Weight to TotalWeight.
By multiplying Weight with TotalWeight.

Explanation

It adds weight to the existing total.

Comments (0)

Advertisement