CSharp examples for Language Basics:for
Count from 1 to 99 using for loop
class for99 { public static void Main() {/*from www . java 2s . c o m*/ int i; for ( i = 1; i <= 99; i++) System.Console.Write("{0} ", i); } }