Check out example codes for "C# while". It will help you in understanding the concepts better.
Code Example 1
int i = 0;
while (i < 10)
{
Console.WriteLine("Value of i: {0}", i);
i++;
}
Code Example 2
int n = 0;
while (n < 5)
{
Console.WriteLine(n);
n++;
}
Learn ReactJs, React Native from akashmittal.com