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/17 07:43:18
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