Will Mueller
4/25/2008 9:49:00 PM
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 <will.liljon@gmail.com> 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 <john.d.perkins@gmail.com> wrote:
> > On Apr 25, 10:08 am, Will Mueller <will.lil...@gmail.com> 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