Date: Jan 21, 2013 12:07 AM
Author: Chris Arthur
Subject: Re: problem with append

maybe this is what you want

rr={};
For[a = 2, a < 6, a++,
For[b = 2, b < 6, b++,
rr = Appendto[rr, a^b]]]
rr




Paolo cachecho a écrit :
> hello i am new to mathmatica.i have the following problem if anyone could help.
>
> For[a = 2, a < 6, a++,
> For[b = 2, b < 6, b++,
> Appendto[rr = {}, a^b]]]
> rr
>
> but rr remains empty. how can i solve this
> thank you
>
>
>