Coder's Guild Mailing List

Re: tabular output

Posted by Kurt Schwind on 2001-05-22

> Date: Tue, 22 May 2001 13:36:56 +0530 (IST)
> From: Pradeep Bisht <x00bisht@xxxxx.xx.xxx>
> Subject: tabular output ...
> 
> hi...
>    i hav 2 arrays x and y...i want to print them to a file in a tabular
> form...the file should hav multiple columns.
>    like..
> 
>          c1     c2      c3      c4
> 
>           1     2       3       4
>           5     6       7       8
>           9     10      11      12
> 
> 
>    first i print the values of x={1,5,9} and  y={2,6,10} in c1 & c2.
>    then the value of x remains same but the values of y changes which i to print
> to c3.
>    again then value of y changes which i want to print under column c4 and so
> on.....
> 
>    kin ani bodi help me...
> 
> thanks in advance...
> 
> bi...bi...
> with regards...
> pradeep...

Two questions.

1.	Which language?  You can do this in a shell script.
2.	This looks a lot like HOMEWORK.  Is it?

Kurt