Could a switch statement be designed logically to perform the same tests as the following nested if

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 done.

if (aValue == 100)

Console.WriteLine("Value is 100");

else if (aValue < 100)

Console.WriteLine("Value is less than 100");

Fantastic news! We've Found the answer you've been seeking!

Step by Step Answer:

Question Posted: