On 1 October 2010 22:17, Jeremy Bopp <jeremy / bopp.net> wrote:

>
> I have another suggestion to help simplify your code a bit.  Replace
> these lines:
>
> year1 = gets.chomp
> year2 = gets.chomp
>
> With:
>
> year1 = gets.chomp.to_i
> year2 = gets.chomp.to_i
>
>
you don't need  chomp

year1 = gets.to_i
year2 = gets.to_i

-Thomas

-- 
Thomas Preymesser
thopre / gmail.com
http://thopre.googlepages.com/
http://thopre.wordpress.com/