MathGroup Archive 2007

[Date Index] [Thread Index] [Author Index]

Search the Archive

question about For

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


This message was scanned for spam and viruses by BitDefender.
For more information please visit

  • Prev by Date: Re: Precedence of Infix Operator
  • Next by Date: OPTIMIZATION: nonlinear regression analysis with mathematica
  • Previous by thread: Bug in Print
  • Next by thread: Re: question about For