最新回答 / darkstars
string[] name = new string[] { "景珍", "林惠洋","程蓉", "洪南昌", "龙玉明", "单江开", "田武开", "王三明" }; int[] sum = new int[] { 90, 65, 88, 70, 46, 81, 100, 68 }; Console.Write("平均分是76高于平均分的有:"); for (int i = 0; i < sum.Lengt...
2020-11-16
最新回答 / darkstars
string[] name = new string[] { "景珍", "林惠洋","成蓉", "洪南昌", "龙玉明", "单江开", "田武山", "王三明" }; int[] sum = new int[] { 90, 65, 88, 70, 46, 81, 100, 68 }; Console.Write("平均分是76,高于平均分的有:"); for (int i = 0; i < sum.Leng...
2020-11-04
最新回答 / 辰风依旧
// 创建姓名数组,存储8位同学的姓名 string[] names = new string[]{"景珍","林惠洋","成蓉","洪南昌","龙玉民","单江开","田武山","王三明"}; // 创建分数数组,存储9位同学的分数 int[] scores = new int[]{90,65,88,70,46,81,100,68}; // 循环数组,累加总分 int su...
2020-10-18
最新回答 / weixin_宝慕林9321889
Console.WriteLine("分数最高的是{0},分数是{1}",name[k],score[k]);改为Console.WriteLine("分数最高的是{0},分数是{1}",name[k],score[k]);
2020-09-29
最赞回答 / 慕用1293707
<...code...>两个if else吧。输入是否是会员:y/其他字符;if (是会员) if (大于200) 打七五折; else 打八折;else if (大于100) 打九五折; else 原价;
2020-09-17