Skip to content

Instantly share code, notes, and snippets.

@yoonchulkoh
Created March 26, 2012 04:43
Show Gist options
  • Save yoonchulkoh/2202973 to your computer and use it in GitHub Desktop.
Save yoonchulkoh/2202973 to your computer and use it in GitHub Desktop.
1..100.rb
(1..100).inject(0) { |sum, i| sum + i }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment