MathGroup Archive 2008

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

Search the Archive

Instructions in for

Hello Group,

QUESTION: how to introduce many instructions in for?

In C++ it is possible to use while/for and
include many instructions:

for( i=0; i<n; i++ ){
    as many as you
    like }

In Mathematica, one instruction (Print)  :

For[ i=1, i<n, i++, Print[i] ]
how can I include more instructions?

Thank you All,
Alejandra L.

  • Prev by Date: Notations and Symbols
  • Next by Date: Re: Options for showing scan delay
  • Previous by thread: Re: Notations and Symbols
  • Next by thread: Re: Instructions in for