Created
November 14, 2015 04:12
-
-
Save maetl/1a598607a0c16616efef to your computer and use it in GitHub Desktop.
Magic numbers
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
(1..9).reduce('') do |m,i| | |
s = i.to_s | |
m << s | |
r = "#{m} * 8 + #{i.to_s}" | |
puts r + " = " + eval(r).to_s | |
m | |
end |
Author
maetl
commented
Nov 14, 2015
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment