Question: How do I output a vector

I currently have a list 2 elements long filled with lists 6 elements long similar to the following:

A := [[0, 1, 2, 3, 4, 5], list[0, 2, 4, 6, 8, 10]]

I would like to output 'A' (my list of lists) to a text file to look like the following:

0   0

1   2

2   4

3   6

4   8

5   10

 

Currently my code looks like this

L := [ ];
M := [ ];
for i from 0 to 5 do L := [op(L), 2*i]; M := [op(M), i] end do;
A := [M, L];
writedata(test, A, float);

 

Which provides me with almost what I need, but written horizontally instead of vertically:

0    1    2    3    4    5
0    2    4    6    8    10

 

How do I alter the code so that I can read my values vertically?

Please Wait...