Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print "What is your name? "
- name = gets.chomp
- puts "Alright #{name} what would you like to buy today?
- We currently have a beach ball, a tennis ball and a giraffe.
- The beach ball is 12.99, the tennis ball is 4.99 and the
- giraffe is 93.86. You currently have $120. "
- purchase = gets.chomp
- giraffe = 93.86
- tennis ball = 4.99
- beach ball = 12.99
Advertisement
Add Comment
Please, Sign In to add comment