The if-else-if combination structure

A particularly important combination structure is the combination of several if else structures to form a sort of multiple choice structure.

(Note that the same result can sometimes be achieved more conveniently using a switch-case structure.)

The if-else-if is illustrated by the program named Structures04.

A complete listing of the program is provided in Listing 13.