CSharp examples for Language Basics:for
Loop from 1 to 10 with for loop
using System;//from w w w .j a v a2 s . co m using static System.Console; class Program { static void Main(string[] args) { for (int y = 1; y <= 10; y++) { WriteLine(y); } } }