62. Transpose a Matrix
Read a matrix with r rows and c columns, then print its transpose,
the matrix with rows and columns exchanged.
The transpose has c rows and r columns, and the value at row i, column j of the
result is the value at row j, column i of the input.
Print each row on its own line with values separated by single spaces.
Constraints - `1 ≤ r, c ≤ 100` - `-1000000 ≤ each value ≤ 1000000`
Input
The first line contains two integers r and c.
Each of the next r lines contains c space-separated integers.
Output
Print c lines of r integers each, separated by single spaces, the transposed grid.
Hints
Four rungs, in order. The last two open once you have submitted an attempt. A wrong one counts.