MathGroup Archive 2008

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

Search the Archive

Instructions in for

  • To: mathgroup at
  • Subject: [mg89371] Instructions in for
  • From: "Alejandra Lozada" <alozih at>
  • Date: Sat, 7 Jun 2008 02:59:49 -0400 (EDT)

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