Britannica AI Icon

Quick Summary

In computer programming, sequence refers to the default control structure where instructions are executed one after another in a specific order. This is akin to following a recipe step-by-step. For example, a sequence might involve a series of calculations to solve a mathematical equation.1

Other fundamental control structures include conditionals (like IF-THEN statements), which allow programs to make decisions and follow different paths, and iteration (loops), which enable computers to repeat tasks efficiently. These structures can be combined to create complex programs that solve intricate problems.1

Summary created from Britannica articles using AI. AI can make mistakes, so verify using Britannica articles.

Ask Britannica AI about this topic

Britannica doesn't have a full article on this topic, so we've curated a list of our relevant coverage.