Chapter 18 The Multiple-Alternative Decision Structure
18.1 The Multiple-Alternative Decision Structure
The multiple-alternative decision structure is used to expand the number of alternatives, as shown in the following flowchart fragment.
When a multiple-alternative decision structure is executed, Boolean_Expression_1 is evaluated. If it evaluates to true, the corresponding statement or block of statements that immediately follows it is executed; then the rest of the structure is skipped, continuing to any remaining statements that may exist after the multiple-alternative decision structure. However, if Boolean_Expression_1 evaluates to false ...
Get Java and Algorithmic Thinking for the Complete Beginner now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.