c# repeat loop code example
Example 1: c# do
int n = 0;
do
{
Console.WriteLine(n);
n++;
} while (n < 5);
Example 2: c# do
int i = 0;
do
{
Console.WriteLine("i = {0}", i);
i++;
} while (i < 5);
int n = 0;
do
{
Console.WriteLine(n);
n++;
} while (n < 5);
int i = 0;
do
{
Console.WriteLine("i = {0}", i);
i++;
} while (i < 5);