Question: Convert the following Multi-Way-if statement to a Switch statement. Note - there are no syntax errors. if(n Fruit 1) strFruit = Apples: else if(nFruit 2)
Convert the following Multi-Way-if statement to a Switch statement. Note - there are no syntax errors. if(n Fruit 1) strFruit = "Apples": else if(nFruit 2) strFruit = "Bananas": else if(n Fruit 3) strFruit = "Oranges": else if(nFruit 4) strFruit = "Peaches": else strFruit = "Error": Edit View Insert Format Tools Table 12pt Paragraph B IU A Tev
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
