Accumulate
class Raindrops
def self.convert(numb)
output = ""
output += "Pling" if numb % 3 == 0
output += "Plang" if numb % 5 == 0
output += "Plong" if numb % 7 == 0
output.empty? ? numb.to\_s : output
end
end
0
0
0.000
0 comments