The sequence structure

We have been using the sequence structure since early in the course.  (See The sequence Structure.)  We can describe the sequence structure using the pseudocode shown in Figure 1.

  Perform one or more actions in sequence

Figure 1

Thus, the general requirement for the sequence structure is that one or more actions may be performed in sequence after entry and before exit.

There may not be any branches or loops between the entry and the exit.

All actions must be taken in sequence.