Question: Which statement in C# allows you to do the following: properly check the variable code to determine whether it contains the character C, and if
Which statement in C# allows you to do the following: properly check the variable code to determine whether it contains the character C, and if it does, display
‘‘This is a check’’ and then advance to a new line?
a. if code is equal to C Console.WriteLine("This is a check");
b. if (code = "C")
Console.WriteLine("This is a check");
c. if (code == 'C')
Console.WriteLine("This is a check");
d. if (code == C)
Console.WriteLine("This is a check");
e. none of the above
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
