Question: Identify and correct the errors in each of the following sets of code: a) while (c
Identify and correct the errors in each of the following sets of code:
a) while (c <= 5)
{
product *= c;
++c;
b) if (gender == 1)
{
Console.WriteLine("Woman");
}
else;
{
Console.WriteLine("Man");
}
Step by Step Solution
3.46 Rating (166 Votes )
There are 3 Steps involved in it
a Error The closing right brace of the while statements ... View full answer
Get step-by-step solutions from verified subject matter experts
