From: Matthew Moss Date: 2008-11-19T10:48:41+09:00 Subject: Re: Syntax question from a newbie to Ruby > i got it to work with this: > > puts 'Hello what is you\'re Favorite Number?' > number = gets.chomp > puts'' > puts'-----------------------------------------------------' > puts 'Your favorite number is ' ''+ number + '?' > puts '' > puts 'What a Lovely Number!' > puts '' > newnumber = (number.to_i + 1.to_i) > puts 'I think ' + newnumber.to_s + ' may be a better favorite number > though...' > puts '-----------------------------------------------------' > > is there a way to get it to work with another variable (newnumber) > adding them first then converting it to a string in the text line? Also, try this: puts <