Revised 09/30/98, 01/20/00, 03/30/00, 05/15/03
CHAPTER 13 — Single-branch if
Statements
In this chapter you will look at
more ways to make decisions.
Chapter Topics:
- Single-block
if
statements.
- Boolean expressions that use arithmetic.
- Picking the right relational symbol.
- Several
if
statements in a program.
QUESTION 1:
You are walking through the Mall and are a little bit hungry.
You approach a cookie store and are tempted by the pleasant aromas.
What will you do?