二维数组解法
string [,]test={{"景","90"},略;
int sum=0;
for(int i=0;i<test.GetLongLength(0);i++)
sum += int.Parse (test[i,1]);
int avg=sum/(int)test.GetLongLength(0);
Console.WriteLine("平{0},高:",avg);
for(int i=0;i<test.GetLongLength(0);i++)
{
if(int.Parse(test[i,1])>avg)
Console.Write(test[i,0]+' ');
}
string [,]test={{"景","90"},略;
int sum=0;
for(int i=0;i<test.GetLongLength(0);i++)
sum += int.Parse (test[i,1]);
int avg=sum/(int)test.GetLongLength(0);
Console.WriteLine("平{0},高:",avg);
for(int i=0;i<test.GetLongLength(0);i++)
{
if(int.Parse(test[i,1])>avg)
Console.Write(test[i,0]+' ');
}