c# use while code example
Example 1: c# while loop
int n = 0;
while (n < 5)
{
Console.WriteLine(n);
n++;
}
Example 2: while loop check condition c#
simple while loop
int n = 0;
while (n < 5)
{
Console.WriteLine(n);
n++;
}
simple while loop