Question: Rewrite the following code, from an IF-ELSE IF statement to a switch statement. if(choice == 5) { var -= } else if(choice == {
Rewrite the following code, from an IF-ELSE IF statement to a switch statement. if(choice == 5) { var -= } else if(choice == { } 15; var -= 25; } else if(choice { } else { var -= 35; var -= 45; == 4) 3 || choice == 2)
Step by Step Solution
There are 3 Steps involved in it
The given IFELSE statement can be converted into a SWITCH statement in a programming language like J... View full answer
Get step-by-step solutions from verified subject matter experts
