← 3.4 Control Structures

break: leave the loop immediately

Computer Studies · Grade 10 · about 40 minutes

break jumps out of the current loop, even if rounds remain. Use it to stop at the first match in a register.

Sign in to read this lesson

Lessons are for learners and teachers with an account. Browsing the curriculum — subjects, strands and what each sub-strand covers — stays open to everyone.

  • 8 sections of explanation, worked examples and diagrams
  • 1 practice task with hints and worked answers
  • A quiz that marks itself as you go
  • Your progress kept across every subject you take
Sign in Create an account