A program to merge two integer arrays into a third array with alternate elements from the first and second array respectively. Your program should do the following: a. Input size of 2 arrays b. Input the array elements c. Write a loop structure to copy elements into a third array in an alternate fashion d. Print the merged array Note: If one array is extinguished, continue to copy the remaining elements of the other array Example: size1 = 3 size2 = 4 array1 = {2,3,5}; array2 = {1,8,3,0}; array3 = {2,1,3,8,5,3,0} output 2138530
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
27 | 28 | 29 | 30 | 1 | 2 | 3 |
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |