Question: 1) 3. a) What is x after the following code executes? int x = 3, y = 2; if (y x += 4; else if

1) 3. a) What is x after the following code executes? int x = 3, y = 2; if (y x += 4; else if (y = 2) x += 7; else if (y 3) x += 10; else x += 15; b) Rewrite the code from part a to use a switch statement
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
