created 11/07/98; revised 11/24/99, 01/22/00, 07/20/02

CHAPTER 43 — More Ways to Make Decisions

Various combinations and nestings of the if and else statements are used in a program for branching. For example, deciding between more than two alternatives can be done with nested if's. Sometimes nesting is inconvenient and confusing. This chapter discusses other statements for branching.

Chapter Topics:

Any program can be written without using either of these statements. But they are useful enough to know about, and you will need to know them to use programs written by other programmers.

QUESTION 1:

(Math Review:)