using System;
namespace Test2
{
class Program
{
static void Main(string[] args)
{
string[] Name = new string[] { "景珍", "林惠洋", "成蓉", "洪南昌", "龙玉民", "单江开", "田武山", "王三明" };
int[] Score = new int[]{ 90, 65, 88, 70, 46, 81, 100, 68 };
int Sum=Score[0], Avg;
for (int i=1;i<Score.Length;i++) {
Sum += Score[i];
}
Avg = Sum / Score.Length;
Console.Write("平均分是{0},高于平均分的有:",Avg);
for (int i = 0; i <Score.Length; i++) {
if (Score[i] > Avg)
Console.Write(Name[i]+" ");
}
}
}
}
你的那个工资+奖金-税收的题目,还有经理,项目主管,财务总监的题目,做对没有?
高于平均分前面的,是中文逗号