A switch statement allows us to perform specific actions based upon a single integer's value. This is often useful when you are dealing with menu's and other user selection. The general form of the switch statement is shown below. If the value of <selection> happens to be one of the <val>'s associated with a case, then the code executed from the case up until the next break statement will be executed. If none of the <val>'s match the <selection> value then the default case is used.