Rewrite the following program segment using a single case statement instead of nested if-else statements.
if (w == 5): Z = 7else: if (W == 6) Y = 7 else: if (w == 7): X = 7
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.