string[] name=new string[]{"关羽","张飞","赵云","马超","黄忠"};
for(int i=0;i<name.Lenght;i++)
{
Console.Write(name[i]+",");
}
name.Lenght 写错了
改为name.Length