Bỏ qua nội dung

Totalling & counting

English

Totalling: a running total

  • Totalling adds up a series of numbers.
  • Start a total at 0, then add each value to it.
  • The pattern total = total + value is called an accumulator.

Tracing a loop: total grows to 43 and count to 4

Tài liệu

Đăng nhập hoặc tạo tài khoản

IGCSE, A-Level & AP