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/05/08 14:32:54
static void Main(string[] args){string[] 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
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