Enter first array:

Enter second array:


Create a new array taking the middle elements of the two arrays of integer and each length 3.