Chapter 30: | How To Write Multiway Conditional Statements |
You know how to use if
statements when you want a
program to decide which of two alternative statements to
execute. In this chapter, you learn how to use switch
statements when you want your program to decide which of many
alternative statements to execute.