double[] math = new double[10]; double total = 0,max,min,average; int i; Console.WriteLine("请输入10个数(回车键分开):"); for(i = 0;i < 10;i++) math[i] = double.Parse(Console.ReadLine()); max = math[0]; min = math[0]; for (i = 0;i < 10;i++) { total += math[i]; if(math[i] > max) max = math[i]; if(math[i] < min) min = math[i]; } average = total/10; Console.WriteLine("最大值为:{0}",max); Console.WriteLine("最小值为:{0}",min); Console.WriteLine("平均值为:{0}", average); Console.ReadLine();
这个没有什么的看来