Question: Question 8 Consider the following code block: switch( grade ) { case 5: case 4: a = 1; b = 2; break; case 3: a
Question 8
Consider the following code block:
switch( grade ) {
case 5:
case 4:
a = 1;
b = 2;
break;
case 3:
a = 5;
break;
default:
a = 2;
break;
}
Which of the following if statements is equivalent to this switch statement?
Question 8 Consider the following code block: switch( grade) { case 5: case 4: a = 1; b = 2; break; case 3: a = 5; break; default: a = 2; break; Which of the following if statements is equivalent to this switch statement
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
