Hi Pawan,
Here is my effort of 1 hour.
I tried my best to accomplish to your tricky problem.
Here is my code,
int arr1Counter = -1;
int arr2Counter = -1;
for (int i = 0; i < Arr3.Length; i = i + 2)
{
arr1Counter++;
arr2Counter++;
if (arr1Counter < 5)
{
while (Arr1[arr1Counter].ToString() == String.Empty)
{
arr1Counter++;
}
}
Arr3[i] = Arr1[arr1Counter];
if (arr2Counter < 5)
{
while (Arr2[arr2Counter].ToString() == String.Empty)
{
arr2Counter++;
}
}
if (i < 4)
Arr3[i + 1] = Arr2[arr2Counter];
}
Please
vote and
Mark as Answer if Helped.