You are employed as a developer at ABC.com. You make use of C# and ASP.NET for
development purposes.
You are writing code for a new ABC.com application. The code includes the while statement.
You want to make sure that a control enters the while loop six times.
Which of the following suitably represents the written code?
A.
int count = 0;
while (count < 6)
{
when (count == 6)
break;
count++;
}
B.
int count = 0;
while (count < 7)
{
if (count == 5)
break;
count++;
}
C.
int count = 1;
while (count < 6)
{
if (count == 6)
break;
count++;
}
D.
int count = 1;
while (count < 7)
{
when (count == 5)
break;
count++;
}
B.