using System;
using static System.Array;
namespace ConsoleApplication1
{
class Program
{
public static void Main()
{
Console.Title = "cxc";
Console.WindowTop = 00;
// Console.WindowWidth = 20;
//Console.Beep();
int[] a = new int[5] { 3, 5, 1, 4, 2 };
for(int i=0;i<a.Length;i++)
{
Console.WriteLine(a[i]);
}
Console.WriteLine(a.GetLength(0));
Reverse(a);
for (int i = 0; i < a.Length; i++)
{
Console.WriteLine(a[i]);
}
Sort(a);
for (int i = 0; i < a.Length; i++)
{
Console.WriteLine(a[i]);
}
}
}
}