static void Main(string[] args){string[] friendNames = { "Robert Barwell","Mike Parry","Jeremy Beacock" };int i;Console.WriteLine("Here are {0} of my friends:",friendNames.Length);for (i = 0; i < friendNames.Length; i++){Console.WriteLine(friendNames

来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/24 21:29:56
staticvoidMain(string[]args){string[]friendNames={"RobertBarwell","MikeParry","JeremyBeacock"};inti;

static void Main(string[] args){string[] friendNames = { "Robert Barwell","Mike Parry","Jeremy Beacock" };int i;Console.WriteLine("Here are {0} of my friends:",friendNames.Length);for (i = 0; i < friendNames.Length; i++){Console.WriteLine(friendNames
static void Main(string[] args)
{
string[] friendNames = { "Robert Barwell","Mike Parry","Jeremy Beacock" };
int i;
Console.WriteLine("Here are {0} of my friends:",friendNames.Length);
for (i = 0; i < friendNames.Length; i++)
{
Console.WriteLine(friendNames[i]);
}
Console.ReadKey();

static void Main(string[] args){string[] friendNames = { "Robert Barwell","Mike Parry","Jeremy Beacock" };int i;Console.WriteLine("Here are {0} of my friends:",friendNames.Length);for (i = 0; i < friendNames.Length; i++){Console.WriteLine(friendNames
就是写出你朋友的数量和各个名字,你运行一次就知道了.
你的朋友是:"Robert Barwell","Mike Parry","Jeremy Beacock"
数量是friendNames.Length