CSharp examples for Language Basics:for
What is the output of the program, for loop
class MainClass//from w ww . jav a 2 s . c o m { static void Main() { int x; for ( x = 0; ++x <= 10; System.Console.WriteLine("{0}", x)) ; } }