Re: Instructions in for

*To*: mathgroup at smc.vnet.net*Subject*: [mg89398] Re: [mg89371] Instructions in for*From*: Murray Eisenberg <murray at math.umass.edu>*Date*: Sun, 8 Jun 2008 02:33:01 -0400 (EDT)*Organization*: Mathematics & Statistics, Univ. of Mass./Amherst*References*: <200806070659.CAA09938@smc.vnet.net>*Reply-to*: murray at math.umass.edu

Look up CompoundExpression ! Alejandra Lozada wrote: > 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++ ){ > instructions, > as many as you > like } > > In Mathematica, one instruction (Print) : > > For[ i=1, i<n, i++, Print[i] ] > how can I include more instructions? -- Murray Eisenberg murray at math.umass.edu Mathematics & Statistics Dept. Lederle Graduate Research Tower phone 413 549-1020 (H) University of Massachusetts 413 545-2859 (W) 710 North Pleasant Street fax 413 545-1801 Amherst, MA 01003-9305

**References**:**Instructions in for***From:*"Alejandra Lozada" <alozih@gmail.com>