Console.WriteLine("请输入六个数字");
int[] a = new int[6];
for (int i = 0; i < a.Length; i++)
{
Console.WriteLine("请输入第{0}个数字", i + 1);
a[i] = Convert.ToInt32(Console.ReadLine());
}
Array .Sort (a);
Array.Reverse (a);
Console.WriteLine("排序为:");
foreach (var item in a)
{
Console.Write(item + "\t");
}
Console.ReadKey();