While Tester : While : Language Basics C# Source Code


Custom Search

C# Source Code » Language Basics » While »

 

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++;
         }
     }
 }

           
       
    
   
  
   







HTML code for linking to this page:

Follow Navioo On Twitter

C# Source Code

 Navioo Language Basics
» While