Switch Case statement in C++
Introduction A switch case is a statement that allows the variable to be compared to a set of variables. Each value is referred to as a case, and the variable is tested for each case. It is also a substitute for the If-Else-If Statement. Syntax of Switch Case: switch(conditional-expression){ case ‘value1’: // code break; // …