From: Will Mueller Date: 2008-04-26T06:47:26+09:00 Subject: Re: Counting Program 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