Computer Science, asked by Anonymous, 6 months ago

Rewrite the following switch statements using if-else statements.

int x = 3;
int y = 3;
switch (x+3){
case 3: y = 0; break;
case 6: y = 1;
default: y += 1;
}
System.out.println(y);

can someone help explain how to do this?

Answers

Answered by ranavedang2006
0
Sorry I didn’t answer
Because I didn’t know
Please make me a brainlest
Similar questions