Computer programs make use of data to control the flow of programs. There are several main primitive data types. Data values can be variable or constant.
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.