运行成功输出错误。。。为啥,字符串的逗号和冒号是中文的
using System.Text;
namespace projAboveAvg
{
class Program
{
static void Main(string[] args)
{
string[] name = new string[8]{ "景珍", "林惠洋", "成蓉", "洪南昌", "龙玉民", "单江开", "田武山", "王三明" };
int[] score = new int[8] { 90, 65, 88, 70, 46, 81, 100, 68 };
int sum = 0;
int avg,a,b;
for (a = 0; a < score.Length; a++)
{
sum = score[a] + sum;
}
avg = sum / score.Length;
Console.WriteLine("平均分是{0},高于平均分的有:",avg);
for (b = 0; b < score.Length; b++)
{
if (score[b] > avg)
Console.Write(name[b]+" ");
}
}
}
}
运行成功输出错误。。。为啥,字符串的逗号和冒号是中文的