Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Instructions in for

  • To: mathgroup at smc.vnet.net
  • Subject: [mg89371] Instructions in for
  • From: "Alejandra Lozada" <alozih at gmail.com>
  • 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++ ){
    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?

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