ARRAYS SORTING IN C#

 

using System;

using System.Collections.Generic;

using System.Text;

 

namespace ArraySorting

{

    class Program

    {

        static void Main(string[] args)

        {

            int[] data = { 500,499,786,13,555};

//data for sorting

 

            Array.Sort(data);

 

            foreach (int i in data)

                Console.WriteLine(i);

 

            Console.ReadLine();

        }

    }

}

 

OUTPUT WILL SHOWN LIKE : 

13

499

500

555

786

--------------------------