Re: question about For
- To: mathgroup at smc.vnet.net
- Subject: [mg84134] Re: question about For
- From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
- Date: Tue, 11 Dec 2007 06:07:49 -0500 (EST)
- Organization: Uni Leipzig
- References: <fjkqg9$k3i$1@smc.vnet.net>
- Reply-to: kuska at informatik.uni-leipzig.de
Hi,
hmm ... and the other functions like Table[]
t=Table[i,{i,4}]
do not help ?
And ..
t={};
For[i=1,i<5,
Print[i];
AppendTo[t,i++]
]
Regards
Jens
Ary Adilson Morales Alvarado wrote:
> Dear friends,
>
> I would like to know how to save the data from a For loop.
>
> Something like that:
>
> t=For[i = 1, i < 5, Print[i]; i++]
>
> t={1, 2, 3, 4}
>
> Thanks in advance
>
> Ary
>
>
>