using System;
public class Program
{
public static void Main()
int[] v = {22,5,4,2};
int s = 0;
for (int i = 0; i < v.Length-1; i++)
for(int j = i+1; j < v.Length; j++)
if (v[i] < v[j])
s = v[i];
v[i] = v[j];
v[j] = s;
}
Console.ReadKey();