While Tester
/* Learning C# by Jesse Liberty Publisher: O'Reilly ISBN: 0596003765 */ using System; public class WhileTester { public static void Main() { int counterVariable = 0; // while the counter variable is less than 10 // print out its value while (counterVariable < 10) { Console.WriteLine("counterVariable: {0}",counterVariable); counterVariable++; } } }