Control cannot fall through from one case label label to another when a switch statement contains more than one switch section you must explicit…