求助!!!这样对吗(在软件可以但是慕课网不可)
string[] ming = new string[] {"景珍","林惠洋","成蓉","洪南昌","龙玉民","单江开","田武山","王三明" };
int[] fen = new int[]{90,65,88,70,46,81,100,68};
int pingjun;
pingjun = (fen[0] + fen[1] + fen[2] + fen[3] + fen[4] + fen[5] + fen[6] + fen[7])/8;
Console.WriteLine("平均分是{0},高于平均分的有:", pingjun);
string ren;
for (int i = 0; i < fen.Length; i++)
{
if (fen[i] > pingjun)
{
ren = ming[i];
Console.Write("{0}"+" ", ren);
}
}