Title / Description
Code def self.multiples_of_3_and_5(number) #this is cool x = 0; (1...number).each do |n| if n % 3 == 0 || n % 5 == 0 x = x + n end end x end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code