Sherzy
3/17/2016 - 5:01 PM

Switch

Switch

switch(n)
{
case 1:
  //execute code block 1
  break;
case 2:
 // execute code block 2
  break;
default:
  //code to be executed if n is different from case 1 and 2
}