Created
June 21, 2015 14:13
-
-
Save nicollehahn/032b6801ab9a1bc2f91f to your computer and use it in GitHub Desktop.
Ruby: Bigger better number
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
puts 'Would you please enter the number you find most special?' | |
number = gets.chomp | |
puts 'So, you\'re favorite number is ' + number.to_s + ' is a wonderful number.' | |
betternumber = number.to_i + 1 | |
puts 'But, ' + betternumber.to_s + ' is way better and more exciting.' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment