Control structures

From Higher Computing Science
Jump to: navigation, search
  • Programming languages uses control structures to provide control over the flow of commands in a program.
  • Sequence is used to control what order commands are executed in (usually in order)
  • Selection is used to make decisions in a program (using a structure such as an IF statement)
  • Iteration is used to repeat a block of code (such as a fixed or conditional loop)