string[]name=new string[]{"景珍","林惠洋","成蓉","洪南昌","龙玉民","单江开","田武山","王三明"};
int[]score=new int[]{90,65,88,70,46,81,100,68};
int a=0;
foreach(int x in score)
a+=x;
a/=score.Length;
Console.WriteLine("平均分是{0},高于平均分的有:",a);
for(int x=0;x<score.Length;x++)
if(score[x]>a)
Console.Write(name[x]+' ');
int[]score=new int[]{90,65,88,70,46,81,100,68};
int a=0;
foreach(int x in score)
a+=x;
a/=score.Length;
Console.WriteLine("平均分是{0},高于平均分的有:",a);
for(int x=0;x<score.Length;x++)
if(score[x]>a)
Console.Write(name[x]+' ');
如鹏【免费视频教程】大型网站技术揭秘,人人都可学会的www.rupeng.com/Courses/Chapter/299
2015-11-11
如鹏网最新【免费视频教程】大型网站技术揭秘,人人都可学会http://www.rupeng.com/Courses/Chapter/299
2015-11-11
如鹏网最新【免费视频教程】大型网站技术揭秘,人人都可学会http://www.rupeng.com/Courses/Chapter/299
2015-11-11