x

Repetition, expressions, and loop shapes

Repetition, expressions, and loop shapes

Flowchart comparing a count-controlled for loop with inclusive endpoints, a pre-condition while loop that may skip the body, and a post-condition do until loop that always runs once Iteration means repeating a block of instructions. An operator is a symbol or keyword that acts on values, and an expression combines values, variables, and operators to produce a result such as score+10score + 10score+10 or score>=50score >= 50score>=50.

Iteration and operators Lesson

  1. A Level
  2. /Computer Science
  3. /Iteration and operators

Lessons