From: Josh Cheek Date: 2010-03-12T04:20:17+09:00 Subject: Re: convert s to i, then + 1 --000e0cd729b62e9d9504818add2c Content-Type: text/plain; charset=ISO-8859-1 As long as their number isn't negative print "Enter your favourite number: " puts "My favourite is: #{gets.next}" For decimals, it won't be 1 more, but rather the last digit will be incremented. --000e0cd729b62e9d9504818add2c--