public static void Main()
Console.Write("Input the size of array : ");
int sizeOfArray = Convert.ToInt32(Console.ReadLine());
Console.WriteLine(string.Format("Input {0} elements in the array :", sizeOfArray));
int[] arrayInt = new int[sizeOfArray];
for (int i = 0; i < sizeOfArray; i++) {
Console.Write(String.Format("element - {0}: ", i));
arrayInt[i] = Convert.ToInt32(Console.ReadLine());
Array.Sort<int>(arrayInt);
Console.WriteLine("Elements of array in sorted ascending order:");
for (int i = 0; i < sizeOfArray; i++) {
Console.Write(arrayInt[i] + " ");