Rewrite the following switch statement using an if statement(s).
switch (ans) {
case 'Y': case ’y': x = x + 1;
break;
case 'N': case 'n': x = x - 1;
break;
default: x = 0;
}
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.