# this is what i was to do

If we list all the natural numbers below 10 that are multiples of 3 or 5, we get 3, 5, 6 and 9. The sum of these multiples is 23.

Find the sum of all the multiples of 3 or 5 below 1000.

```
#My_Code
def three
counter = 0
loop do
counter += 1
next if counter % 3 != 0
puts "#{counter} "
break if counter >= 9
end
end
def five
fi = 0
loop do
fi += 1
next if fi%5 != 0
puts "#{fi} "
break if fi >=10
end
end
three
five
three.each {|x| x}
five.each {|y| y}
print x + y
```

I know it doesn't look pretty but someone help me to write this code from scratch or edit my code tell me where i went wrong and all that! this is how i was going to approach this.