CREATING A WHILE LOOP STATEMENT IN C# code example
Example: while loop in c#
int i = 0;
while (i < 10)
{
Console.WriteLine("Value of i: {0}", i);
i++;
}
int i = 0;
while (i < 10)
{
Console.WriteLine("Value of i: {0}", i);
i++;
}