From: Will Mueller Date: 2008-04-26T06:49:07+09:00 Subject: Re: Counting Program Still getting an error after editing to make: require 'rubygems' require 'highline/import' count = ask('Count to what number?: ') c = 0 amt = count.to_i + 1 amt.times do |c| puts c c += 1 sleep 1 end Much larger error. On Fri, Apr 25, 2008 at 4:47 PM, Will Mueller wrote: > Received the following error: realcountin.rb:3 unterminated string > meets end of file > > realcounting.rb:3: syntax error, unexpected $end, expecting ')' > > > > On Fri, Apr 25, 2008 at 3:20 PM, John wrote: > > On Apr 25, 10:08 am, Will Mueller wrote: > > > No, I mean in a manner that allows user input. So you may type in a > > > number then allow the computer to count to that number. > > > > > > > require 'readline' > > > > num = ask('Count to what number?: ) > > > > num.times do |x| > > puts x > > sleep 1 > > x += 1 > > end > > > > end > > > > > > > > > > -- > Will M > wce.page.tl > freetechtips.tk > will.liljon@gmail.com > -- Will M wce.page.tl freetechtips.tk will.liljon@gmail.com