if selection statement expects only one statement in its body. Similarly, the
else parts of an
else statement each expect only one body statement. To include several statements in the body of an
if or in either part of an
else, enclose the statements in braces (
}). A set of statements contained within a pair of braces is called a block.
Software Engineering Observation 4.2
A block can be placed anywhere in a program that a single statement can be placed.
The following example includes a block in the
else part of an
if ( studentGrade >= 60 ) cout << "Passed.\n" ...