From: Pablo Tejada Date: 2006-08-03T07:46:40+09:00 Subject: Re: Learn to Program - Solutions? pixelnate wrote: > Is there some place that I can solutions to the exercises in the Learn > To Program book by Chris Pine? I am stuck on the second exercise in > Chapter 8. > > Thanks, > ~Nate I just finished chapter 9 and here is my version of the program. lineWidth = 50 toc=['Table of Contents','Chapter 1: Numbers','page 1', 'Chapter 2: Letters','page 72','Chapter 3: Variables', 'page 128'] puts ' ' al=1 puts toc[0].center(lineWidth) puts ' ' puts ' ' while al