Concept Flow - Switch statement
Start
Evaluate expression
Compare with case 1?
No→Compare with case 2?
Execute case 1
Exit switch statement
The switch statement evaluates an expression once and compares it to each case value in order. When a match is found, it executes that case's code and then exits the switch.