Computer Science for IGCSE & O level - Programming (Section 6 - No. 43)
What is the key difference between `totaling` and `counting`?
Totaling deals with numbers while counting deals with text.
Totaling sums numerical values while counting determines the frequency of occurrences.
Totaling uses pre-condition loops while counting uses post-condition loops.
Totaling is used with strings; counting with numbers.
Explanation
Totaling adds up the values, and counting tallies how many times something happens.
Comments (0)
