this is the code I use;

puts 'Whats your favorite number?'
num = gets
puts  (num.to_i + 1).to_s + ' is my favorite number. It one ups your 
fav!'

Simple and Straightforward. I attached it to.

Attachments:
http://www.ruby-forum.com/attachment/4567/Numfav.rb

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