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)
WriteLine("Value is 100");
else if (aValue < 100)
WriteLine("Value is less than 100");
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
C# Programming From Problem Analysis To Program Design
ISBN: 9781285856872
5th Edition
Authors: Barbara Doyle
Question Posted: