There is a command named default in switch case. By giving which value does this default commands work?
well if any of the case values does not match with our primary value (
2) then it will get executed, You can see that there is one case branch that full fills our given condition..
echo 'The value is 2';
so you need to change this case value such that, so your default case gets executed.
change the case value , other than
2 and try ?