From: Stefano Crocco Date: 2010-12-12T22:30:34+09:00 Subject: Re: Problem with ruby code. On Sunday 12 December 2010 22:03:00 Deza Awesome wrote: > A simple code that is self explanaetary. However when I run it, it spits > out errors at me :( What do I do to make it work? > > > def heLLO > puts 'whats your name' > name = gets.chomp > puts "hello ". + name > end > > > V2 = Array.new [1 + rand(22)] > > > > V1 = Array.new [1 + rand(22)] > > def questioN > puts 'whats the sum of' V2.to_s + 'and' + V1.to_s > end > > > heLLO > questioN You need a + before V2 in the body of questioN Stefano