Array.Sort(твоймассив);
Объяснение:
Весь код:
using System;
namespace MASSIV4IK
{
class Program
static void Main(string[] args)
int[] NUM = {25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, Convert.ToInt32(Console.ReadLine()) };
Array.Sort(NUM);
Array.Reverse(NUM);
for (int i = 0; i < NUM.Length; i++)
Console.WriteLine(NUM[i]);
}
Console.ReadKey();
Array.Sort(твоймассив);
Объяснение:
Весь код:
using System;
namespace MASSIV4IK
{
class Program
{
static void Main(string[] args)
{
int[] NUM = {25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15, 14, 13, 12, 11, 10, 9, 8, 7, 6, 5, 4, 3, 2, 1, Convert.ToInt32(Console.ReadLine()) };
Array.Sort(NUM);
Array.Reverse(NUM);
for (int i = 0; i < NUM.Length; i++)
{
Console.WriteLine(NUM[i]);
}
Console.ReadKey();
}
}
}