Many programmers prefer to use embedded
blocks, instead of embedded statements,
in while
statements, even if a the embedded block contains just
one statement.
The rationale is that, whenever you use an embedded statement instead of an embedded block, you run a small risk of forgetting to add braces later, should new requirements force you to switch from an embedded statement to an embedded block. Accordingly, in this book, you see mostly embedded blocks.