Switch Case

switch(variable)
{
  case value: 
    //code
  case value:
    //code
  default: 
    //code
}

Switch Variable is matched with every case value if match found then and then only code below that case get executed otherwise it next case value is checked.


Note :

*Steps are Shown in Circles.