This page explains how to use C++ Switch Statements.

Code Output
code

Run 1:

code

Run 2:

code

Run 3:

code
*Note: Even though the default statement at the end of the switch is not always need, it is good practice to include it.