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(); } } }
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
--------------------------
You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$20
For Premium members:
$45
For Elite members: