I have a switch statement:
switch(choice)
{
case 1:
//some compute
break;
case 2:
//some compute
break;
case 3:
//some compute
break;
case 4:
//some compute
break;
case 5:
//Call case 3
//Call case 4
//perform my own function
break;
}
How do I call the function of case 3 and case 4 then perform my own computation at case 5.
The only way I could do is to run the same code of case 3 and then case 4 then my own computation, I wonder is there a way to call case 3 & 4 directly like calling a function then return back to case 5.