public static void Main()
int[] arr1 = new int[10];
Console.Write("\n\nSort elements of array in ascending order :\n");
Console.Write("Input the size of array : ");
n = Convert.ToInt32(Console.ReadLine());
Console.Write("Input {0} elements in the array :\n",n);
Console.Write("element - {0} : ",i);
arr1[i] = Convert.ToInt32(Console.ReadLine());
Console.Write("\nElements of array in sorted ascending order:\n");
Console.Write("{0} ", arr1[i]);