Transpose a 3x3 matrix from stdin.
Read 3 lines, each with 3 space-separated integers. Print the transposed matrix (rows become columns), 3 lines, space-separated.
Test input:
1 2 3
4 5 6
7 8 9
Expected output:
1 4 7
2 5 8
3 6 9
Sign in to save your code and track progress across devices.