Switch Statement

Switch Statement

C# offers switch statements which allow you to have multiple selections based on a constant value of a variable. A switch statement is equivalent to a multiple selections if statement but a switch statement is used if the…