Re: Print in a loop
- To: mathgroup at smc.vnet.net
- Subject: [mg103178] Re: [mg103151] Print in a loop
- From: Murray Eisenberg <murray at math.umass.edu>
- Date: Thu, 10 Sep 2009 07:17:45 -0400 (EDT)
- Organization: Mathematics & Statistics, Univ. of Mass./Amherst
- References: <200909090844.EAA05927@smc.vnet.net>
- Reply-to: murray at math.umass.edu
That doesn't happen on my system! I get the expected behavior (with the output in a group of 3 separate cells): Do[Print[i],{i,3}] 1 2 3 Luiz Melo 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 -- 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:
- Print in a loop
- From: Luiz Melo <luiz.melo@polymtl.ca>
- Print in a loop