For without increase

image_pdfimage_print

/*
Learning C#
by Jesse Liberty

Publisher: O'Reilly
ISBN: 0596003765
*/
using System;
public class ForWithoutIncrTester
{

public static void Main()
{

for (int counter = 0; counter<10; ) // no increment { Console.WriteLine( "counter: {0} ", counter); // do more work here counter++; // increment counter } } } [/csharp]