The case statement is used when there are multiple decisions to be made. It is normally used to replace the if statement when there are many routes of execution the program execution can take. The syntax of case is as follows.
Unable to display preview. Download preview PDF.