Description Title
a matrix of 2 rows 3 columns (two-dimensional array) interchanging rows and columns, the memory array further in three rows and two columns.
Requirements to integer data as an example to answer.
Input
Input 2 rows of data, each row of three integers, separated by spaces.
Output
matrix, after interchanging rows and 3 rows, each row 2 data, separated by spaces.
Sample input
. 1 2. 3
. 4. 5. 6
Sample output
. 1. 4
2. 5
. 3. 6
AC Code