Miscellaneous 01 Feb 2007 08:07 pm
Bottle Deposit Puzzle
Here’s a fun little puzzle, just to get the blog flowing again.
If a bottle with a deposit costs $1.10, and the bottle costs a dollar more than the deposit, how much is the bottle worth?
For the answer, run this ruby program:
puts "#{?i} pennies"
or, just look up the ascii value for ‘i’ and you have the penny amount.