Control flow

Algorithms use control flow to make decisions about which order to do things. They can repeat actions or start new actions based on new information.

Computer programs use sequence, selection and iteration to control the flow of the program. These elements allow the program to make choices, change direction or repeat actions.