[Codeup] 26052: example 6-4 matrix transpose

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
Here Insert Picture Description

Released four original articles · won praise 0 · Views 108

Guess you like

Origin blog.csdn.net/niwenroudelian/article/details/104349215