using System; using System.Collections.Generic; using System.Linq; using System.Text;
namespace _118_3._4 { class Program { static void Main(string[] args) { int[] a = new int[5] { 78, 90, 86, 75, 92 }; double s=0; for (int i = 0; i < a.Length; i++) { if (a[0] < a[i]) a[0] = a[i]; s+=a[i]; } Console.WriteLine("最高成绩为;{0}",a[0]); Console.WriteLine("平均成绩为;{0}",s/a.Length ); } } }