MathGroup Archive 2000

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

Search the Archive

Re: Follow-up on Do[] Question

  • To: mathgroup at smc.vnet.net
  • Subject: [mg23366] Re: [mg23328] Follow-up on Do[] Question
  • From: BobHanlon at aol.com
  • Date: Thu, 4 May 2000 02:59:33 -0400 (EDT)
  • Sender: owner-wri-mathgroup at wolfram.com

Do[Print[a]; Print[b]; Print[c], {3}]

In a message dated 5/2/2000 1:03:26 AM, com3 at ix.netcom*NOSPAM*.com writes:

>Am I missing something or is the Do[] construct limited to processing
>only a single command ?
>
>The online help gives the following help on Do.
>Do[expr, {imax}] evaluates expr imax times. 
>
>But what if I have several expressions that I would like evaluated
>imax times ?
>
>Is there a way to accomplish something like 
>Do[expr1, expr2, expr3, . . .exprn, {imax}] ?
>



Bob

BobHanlon at aol.com


  • Prev by Date: Re: Could we build matrix with codition instruction?
  • Next by Date: Re: Follow-up on Do[] Question
  • Previous by thread: Re: Follow-up on Do[] Question
  • Next by thread: Re: Follow-up on Do[] Question