CHAPTER
4
Control Structures
4.1 Relational and Logical Operations
4.2 Selection Structures
4.3 Repetition Structures
4.4 Stacking and Nesting of Control Structures
4.5 Sample Problems and Programs
Chapter Summary
Exercises
Objectives
To understand the logic sequence in which the program statements are executed. To learn to use the sequence, selection, and repetition structures.
The concept of structured programming was developed in the 1960s to eliminate the use of types of statements that made it difficult to follow the flow of control in a program. The sequence in which the statements in a program are executed should always be from the top to the bottom of a program structure. In structured programming languages, such as C, there are language ...
Get C Programming for Scientists and Engineers with Applications now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.