kyreesegordon
kyreesegordon
16.09.2019 • 
Mathematics

Consider the following switch statement where x is an int. if x is currently equal to 5, what will the value of x be after the switch statement executes? switch (x) { case 3 : x += 1; case 4 : x += 2; case 5 : x += 3; case 6 : x++; case 7 : x += 2; case 8 : x--; case 9 : x++ }

Solved
Show answers

Ask an AI advisor a question