Stefano Crocco wrote in post #1038900:

>
> Replace
>
> mark = gets()
>
> with
>
> mark = gets().to_i
>
> and it'll work.
>
> I hope this helps
>
> Stefano

Thanks a lot Crocco...! Understood and great explanation

-- 
Posted via http://www.ruby-forum.com/.