while loop check condition c#

C#
simple while loopint i = 0;

while (i < 10)
{
    Console.WriteLine("Value of i: {0}", i);

    i++;
}

Source

Also in C#: