还有比我这个更简单的么?
string[] n=new string[]{"景珍","林惠洋","成蓉","洪南昌","龙玉民","单江开","田武山","王三明"};
int[] s=new int[]{90,65,88,70,46,81,100,68};
int sum=0;
double p=0;
for(int x=0;x<s.Length;x++){
sum+=s[x];
}
p=sum/s.Length;
Console.WriteLine("平均分是{0},高于平均分的有:",p);
for(int y=0;y<s.Length;y++){
if(s[y]>p){
Console.Write(n[y]+" ");
}
}