Friday 27 December 2013

Dispaly 1 to 10 numbers In Console Application With C#


Dispaly 1 to 10 numbers In Console Application With C#

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Display_Numbers
{
    class Program
    {
        static void Main(string[] args)
        {
            int i;
            for (i = 1; i <= 10; i++)
// if you are writing i <=1000, it display 1000 numbers
            {
                Console.Write(i);
            }
            Console.ReadLine();
        }
    }
}

0 comments:

Post a Comment