using System;
public class Test
{
public static void Main()
{
string[] A = new string[] { "A", "B", "C", "D" };
string[] B = new string[A.Length * 2 + 2]; // you wanted to add something other as well
for (int i = 1; (i-1) / 2 < A.Length; i += 2)
{
B[i] = A[(i-1) / 2];
}
for(int i=0; i<B.Length;i++)
Console.WriteLine("Index: {0} Value: {1}", i, B[i]);
}
}
dXNpbmcgU3lzdGVtOwoKcHVibGljIGNsYXNzIFRlc3QKewoJcHVibGljIHN0YXRpYyB2b2lkIE1haW4oKQoJewoJCSAgICBzdHJpbmdbXSBBID0gbmV3IHN0cmluZ1tdIHsgIkEiLCAiQiIsICJDIiwgIkQiIH07CiAgICAgICAgICAgIHN0cmluZ1tdIEIgPSBuZXcgc3RyaW5nW0EuTGVuZ3RoICogMiArIDJdOyAvLyB5b3Ugd2FudGVkIHRvIGFkZCBzb21ldGhpbmcgb3RoZXIgYXMgd2VsbAogICAgICAgICAgICBmb3IgKGludCBpID0gMTsgKGktMSkgLyAyIDwgQS5MZW5ndGg7IGkgKz0gMikKICAgICAgICAgICAgewogICAgICAgICAgICAgICAgQltpXSA9IEFbKGktMSkgLyAyXTsKICAgICAgICAgICAgfQogICAgICAgICAgICAKICAgICAgICAgICAgZm9yKGludCBpPTA7IGk8Qi5MZW5ndGg7aSsrKQogICAgICAgICAgICAgICAgQ29uc29sZS5Xcml0ZUxpbmUoIkluZGV4OiB7MH0gVmFsdWU6IHsxfSIsIGksIEJbaV0pOwoJfQp9