switch statement for loop c code example
Example: switch case c
switch (expression) {
case constant1:
// statements
break;
case constant2:
// statements
break;
default:
// default statements
}
switch (expression) {
case constant1:
// statements
break;
case constant2:
// statements
break;
default:
// default statements
}