Given the switch statement, which of the following would be the first if statement to replace the
Question:
Given the switch statement, which of the following would be the first if statement to replace the first test in the switch?
switch (control)
{
case 11 : Console.WriteLine("eleven");
break;
case 12 : Console.WriteLine("twelve");
break;
case 16 : Console.WriteLine("sixteen");
break;
}
a. if (case = 11)
b. if (case == 11)
c. if (control == 11)
d. if (switch == 11)
e. none of the above
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: 9781285096261
4th Edition
Authors: Barbara Doyle
Question Posted: