问答详情
源自:6-8 最终项目

结果没错昂 为什么老说输出错误

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]+" ");
            }
        }
    }
}

提问者:锡纸大大 2020-02-11 21:33

个回答

  • 蓝玉紫堇l
    2020-02-12 22:15:12

    你的那个工资+奖金-税收的题目,还有经理,项目主管,财务总监的题目,做对没有?

  • 锡纸大大
    2020-02-11 21:39:01

    高于平均分前面的,是中文逗号