The switch statement is a conditional statement in C# that is used to test a value of a particular variable and decide the action. In the below code, I am checking the value of "option" variable and deciding the action (value of education variable), if desired value is not found for option, then default value will be set for education variable in the default: code block.
int option = int.Parse(Request["n"].ToString()); ;
string education = string.Empty;
education = "Matric";
education = "I.Sc.";
education = "B.Sc";
education = "M.Sc";
education = "Reselect option";