Append Two Arrays
Write a program which takes 2 arrays, A
with m integers and B with n integers
(m>=0, n>=0). Create another array C with x integers
(x= m + n).
The program should put into array C the
appending of B to A, the first m
integers of C from array A, the latter n
from B. Then the program should display C.
Input:
-In the
first line you will get m (number integers in array A) followed by m integers.
-In the second line you will get n (number integers in array B) followed by n
integers.
Output: All the numbers in the array C
separated by a space.
Sample Input1:
|
Sample Input2:
|
3
10 20 30
5
40 50 60 70 80
|
1
5
2
7 9
|
Sample Output1:
|
Sample Output2:
|
10 20 30 40 50 60 70 80
|
5 7 9
|
Для отправки решений необходимо