Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
9 lines (7 sloc) 92 Bytes
sum = 0
(3..999).each do |num|
if num%3==0 or num%5==0
sum += num
end
end
puts sum