C# Switch


The switch allows to switch to different cases based on the value of a variable. The break keyword is used to enable to control to jump to the end of the switch statement.

Example

Please enter a number
2
You have entered 2
__