Chapter 1
Getting Started
Section 7
Control Flow Statements
In a program, it is rare to provide useful functionality by just executing a linear sequence of operations. Commonly, a program must be able to react in different ways in response to different situations or execute the same operation multiple times in different contexts. Let us learn the control flow statements C++ offers to the programmer to control the sequence of operations to be executed.