c# for loop without increment code example
Example: c# for loop without increment
for (int counter = 0; counter<10;)
{
Console.WriteLine( "counter: {0} ", counter);
// Do more work here
counter++; // increment counter
}
for (int counter = 0; counter<10;)
{
Console.WriteLine( "counter: {0} ", counter);
// Do more work here
counter++; // increment counter
}