Created
August 2, 2011 11:37
-
-
Save craigmartin/1120034 to your computer and use it in GitHub Desktop.
answer to #1
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
sum = (1..100).inject(0){|cummulative,n| cummulative+n} | |
puts sum |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment