Guest User

Untitled

a guest
Nov 8th, 2017
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. print "What is your name? "
  2. name = gets.chomp
  3.  
  4. puts "Alright #{name} what would you like to buy today?
  5. We currently have a beach ball, a tennis ball and a giraffe.
  6. The beach ball is 12.99, the tennis ball is 4.99 and the
  7. giraffe is 93.86. You currently have $120. "
  8. purchase = gets.chomp
  9. giraffe = 93.86
  10. tennis ball = 4.99
  11. beach ball = 12.99
Advertisement
Add Comment
Please, Sign In to add comment