Path: utzoo!attcan!uunet!lll-winken!ames!mailrus!csd4.milw.wisc.edu!bbn!bbn.com!syswerda From: syswerda@bbn.com (Gilbert Syswerda) Newsgroups: comp.lang.pascal Subject: Re: Variable length output with Write(ln) inTurbo Pascal 5.0 Message-ID: <34549@bbn.COM> Date: 14 Jan 89 19:40:36 GMT References: <1779@pur-phy> Sender: news@bbn.COM Reply-To: syswerda@bbn.com (Gilbert Syswerda) Organization: Bolt Beranek and Newman Inc., Cambridge MA Lines: 16 In article <1779@pur-phy> murphy@newton.physics.purdue.edu (William J. Murphy) writes: >Does anyone know of a way using Write or Writeln to output a variable >length set of variables on a *single* line? >In C you could write >for(i =0; i printf("%d ",max[i]); >printf("\n"); >So, how do you do it in Pascal? Just like in C. for i := 0 to 19 do write (max[i]:1, ' '); writeln;