Nested selection structures
The code consists of a series of nested selection structures.
Indentation is used in Listing 9 in an attempt to make the nesting more readily understandable.
(Only you can decide whether or not the indentation is effective for that purpose.)
A new if-else structure
In all of the selection structures but the last, a new if-else selection structure forms the body of the else clause of the previous structure.