try
{
Console.WriteLine("输入新的成绩");
int shuzi = Convert.ToInt32(Console.ReadLine());
int[] xsz = { 85, 90, 65, 60, 83, shuzi };
ArrayList a = new ArrayList(xsz);
a.Sort();
Console.WriteLine("重新输入后的排序是:");
foreach (var item in a)
{
Console.Write(item+"\t");
}
}
catch
{
Console.WriteLine("小伙子你输入有点问题出去面壁思过");
}
Console.ReadKey();