Concept Flow - Switch statement
Start
Evaluate expression
Compare with case 1?
No→Compare with case 2?
Execute case 1
Break?
No→Continue to next case
Yes
Exit switch
The switch statement evaluates an expression and compares it to each case value. When a match is found, it executes that case's code until a break is encountered or the switch ends.