我同学刚刚学习C#
老师给他布置了一份作业 题目是:
依次输入5位同学的某学科分数,求出大于平均分的人数
![微笑](http://static.blog.csdn.net/xheditor/xheditor_emot/default/smile.gif)
float[] scores = new float[5];
float v;
float max = float.MinValue, min = float.MaxValue;
float average = 0;
for (int i = 0; i < 5; i++)
{
Console.Write(" 请输入第 {0} 位同学成绩:", i + 1);
v = float.Parse(Console.ReadLine());
scores[i] = v;
if (v > max) max = v;
if (v < min) min = v;
average += v;
}
average /= 5;
for (int i = 0; i < 5;