static void Main(string[] args) { int[] nums = new int[10] { 23, 1, 10, 3, 24, 129, 7, 12, 64, 1234 }; Program Nums = new Program(); int maxNums = Nums.MaxArray(nums); int minNums = Nums.MinArray(nums); double aveNums = Nums.AveArray(nums); int sumNums = Nums.SumArray(nums); Console.WriteLine("最大值:" + maxNums); Console.WriteLine("最小值:" + minNums); Console.WriteLine("平均值:" + aveNums); Console.WriteLine("和:" + sumNums); }