The totaller pattern
Level 5: Repeat. Total <- 0 before the loop. Always. Forgetting the init is a classic trace-table zero.
- Previous: FOR … STEP
- Next: The counter pattern
- IGCSE & O Level Paper 2 Path
Level 5: Repeat. Total <- 0 before the loop. Always. Forgetting the init is a classic trace-table zero.