O'Reilly logo

Absolute Beginner's Guide to Programming, Second Edition by Greg Perry

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Structured Programming Techniques

The following sections explain each of the three structured programming constructs. Read them carefully and you'll see that the concept of a structured program is easy to understand. Learning about structure before learning a language should help you think of structure as you develop your programming skills.

Sequence

Sequence is nothing more than two or more instructions one after the other. Sequential instructions are the easiest of the three structured programming constructs because you can follow the program from the first statement to the last within the sequence. Figure 22.4 uses flowcharting to demonstrate sequence logic.

Here is a pseudocode description of the flowchart as you follow the flowchart from ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required