From: Eric DUMINIL Date: 2006-06-25T06:55:50+09:00 Subject: Re: [QUIZ] pp Pascal (#84) Wow.... For the first time I post on this mailing-list, I really did a great job! I answered twice (my email client crashed) an already answered question, without signature. Sorry about that, I'll try to think a little bit more next time I post. Bye, Eric On 24/06/06, Eric wrote: > > > > The only problem with this is that you need to know the maximum > > cell width (on the last row) when you build the first one. So I > > iterate twice over all rows. The first time to determine the > > last row and its biggest cell and the second time to format and > > print each row. > > > > You really don't need to build the whole triangle to know the length of the > biggest number.... I don't think I'm allowed to give you the formula, but it > should'nt be that hard to figure out anyway ;-) > >