这段程序在Visual Studio2010上运行后为什么的显示不出来算数和与平均分?
static void Main(string[] args)
{
string[] name = new string[5];
int[] score = new int[5];
for (int i = 0; i < name.Length; i++)
{
Console.Write("请输入第" + (i + 1)+"位同学的姓名:");
name[i] = Console.ReadLine();
Console.Write("请输入第" + (i + 1) + "位同学的分数:");
score[i] = int.Parse(Console.ReadLine());
}
//计算总分和平均分
int sum = 0; int avg = 0;
for(int i=0;i<score.Length ;i++)
{
sum+=score[i];
}
avg = sum / score.Length;
Console.Write("总分:{0} ","平均分:{1}",sum,avg);
}