using System;
using System.Collections.Generic;
using System.Text;
namespace projAboveAvg
{
class Program
{
static void Main(string[] args)
{
int sum=0;
int smu=0;
string name[] =new string{"景珍","林惠洋","成蓉","洪南昌","龙玉民","单江开","田武山","王三明"};
int sore[]=new int={90,65,88,70,46,81,100,68};
for(int i=0;i<sore.Length;i++)
{
sum+=sore[i];
}
sum=sum/sore.Length;
Console.WriteLine("平均分是{0},高于平均分的有:" ,sum);
for(int i=0;i<sore.Length;i++)
{
if(sore[i]>sum)
{
Console.Write(name[i] + " ");
}
}
}
}
}
int sore[]=new int={90,65,88,70,46,81,100,68}; 这一行后面的"="号不需要
int smu=0; 这个定义了没用上可以删除
"平均分是{0},高于平均分的有:"
逗号和冒号是中文模式下的