Skip to content

Instantly share code, notes, and snippets.

@nicollehahn
Created June 21, 2015 14:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nicollehahn/032b6801ab9a1bc2f91f to your computer and use it in GitHub Desktop.
Save nicollehahn/032b6801ab9a1bc2f91f to your computer and use it in GitHub Desktop.
Ruby: Bigger better number
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