C Sharp Switch
C# switch To execute one statement from multiple conditions, either the switch statement or the if-else-if ladder statement can be used in C#. The use of the break statement is a must in the C# switch statement. Syntax: switch(expression){ case 1: //code to be executed; break; case 2: //code to be executed; break; …… default: … Read more