MathGroup Archive 2009

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

Search the Archive

Re: Print in a loop

  • To: mathgroup at smc.vnet.net
  • Subject: [mg103193] Re: Print in a loop
  • From: "Sjoerd C. de Vries" <sjoerd.c.devries at gmail.com>
  • Date: Thu, 10 Sep 2009 07:20:35 -0400 (EDT)
  • References: <h87pef$5fv$1@smc.vnet.net>

I get the latter result, just as expected

Cheers -- Sjoerd

On Sep 9, 10:36 am, Luiz Melo <luiz.m... at polymtl.ca> wrote:
> The loop
>
> Do[Print[i],{i,3}]
>
> results in:
>
> 1
> then
> 1
> 2
> then
> 1
> 2
> 3
>
> How can we obtain:
> 1
> then
> 2
> then
> 3
>
> thanks
> Luiz
>
> --



  • Prev by Date: Re: Print in a loop
  • Next by Date: Re: how to get the longest ordered sub sequence of a list in
  • Previous by thread: Re: Print in a loop
  • Next by thread: Re: Print in a loop