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
double money = 60000.00;
if(money>=100000.00){Console.LineWrite("恭喜您获得了一台微波炉!");}
else if(money<100000&&money>=50000){Console.LineWrite("恭喜您获得了一套茶具");}
else if(money<50000&&money>=10000){Console.LineWrite("恭喜您获得了一袋大米!");}
else{Console.LineWrite("不好意思,请您滚");}
if(money>=100000.00){Console.LineWrite("恭喜您获得了一台微波炉!");}
else if(money<100000&&money>=50000){Console.LineWrite("恭喜您获得了一套茶具");}
else if(money<50000&&money>=10000){Console.LineWrite("恭喜您获得了一袋大米!");}
else{Console.LineWrite("不好意思,请您滚");}