Matrix transposition: Difference between revisions

Line 1,357:
for(i := 0; i < x; i+=1;) {
for(j := 0; j < y; j+=1;) {
IO.Console->Print(matrix[i,j])->Print(",'\t"');
};
'\n'->Print();
Line 1,368:
Output:
<pre>
1, 2, 3, 4, 5,
1, 4, 9, 16, 25,
1, 8, 27, 64, 125,
1, 16, 81, 256, 625,
</pre>
 
760

edits