The three basic programming constructs

Programs are designed using common building blocks. These building blocks, known as programming constructs (or programming concepts), form the basis for all programs.

There are three basic building blocks to consider:

There are two types of iteration:

All programs use one or more of these constructs. The longer and more complex the program, the more these constructs will be used repeatedly.