Question: Could a switch statement be designed logically to perform the same tests as the following nested if statement? If so, explain how it could be
Could a switch statement be designed logically to perform the same tests as the following nested if statement? If so, explain how it could be done.
if (aValue == 100)
WriteLine("Value is 100");
else if (aValue < 100)
WriteLine("Value is less than 100");
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
