Im currently working through the book ‘Learn to Program’ by Chris P.
and I am stuck on one of the exercises. I feel like Im close to the
answer but just cannot quite get it. I appreciate the help. Below is the
What I would like to see is: What is your favorite number? 14 Well this
15 (adding 1) might be better. The error is relating to to_i but Im not
sure where to place it on the num or the +1?
puts ‘What is your favorite number?’
num = gets.chomp
puts ‘Well this ’ + num + ’ might be better.’