Arrays Sorting in C#

Vilasgite080
Posted by Vilasgite080 under C# category on | Points: 40 | Views : 1846
//ARRAYS SORTING CODE 

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

Comments or Responses

Login to post response