You are on page 1of 1

using System;

using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace zxcvb
{
class Program
{
static void Main(string[] args)
{

string[] array1 = { "The", "way", "is", "try", "more" };


string[] array2 = { "most", "to", "always", "just", "time." };
string[] array3 = { "certain", "succeed", "to", "one" };

List<string> wiseT = new List<string>();

int count = Math.Max(Math.Max(array1.Length, array2.Length),


array3.Length);

for (int a = 0; a < count; a++)


{
if (a < array1.Length)
{
wiseT.Add(array1[a]);
}

if (a < array2.Length)
{
wiseT.Add(array2[a]);
}

if (a < array3.Length)
{
wiseT.Add(array3[a]);
}
}

Console.WriteLine(string.Join(" ", wiseT));


Console.WriteLine($"Count: {wiseT.Count}, capacity:
{wiseT.Capacity}.");
}
}
}

You might also like