Question: using c++ Change the following switch statement to the equivalent if...else if statement. cin >> a; switch (a) { case 1: case 3: a++; break;

using c++
Change the following switch statement to the equivalent if...else if statement. cin >> a; switch (a) { case 1: case 3: a++; break; case 6: a = a +6; break; case 8 : a = a * 8; break; default:-- }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
