Use of break ;

Reference > syntax of break 

switch(variable)
{
case value:
/*your code here*/
break;
 
case value:
/*your code here*/
break;
 
default:
/*your code here*/
break;


if first case becomes true, break; will not allow the next case to use its code , break will take the control out of switch {}