diff --git a/solutions/go/raindrops/1/raindrops.go b/solutions/go/raindrops/1/raindrops.go new file mode 100644 index 0000000..08e139b --- /dev/null +++ b/solutions/go/raindrops/1/raindrops.go @@ -0,0 +1,19 @@ +package raindrops + +import "strconv" +func Convert(number int) string { + result := "" + if number % 3 == 0 { + result += "Pling" + } + if number % 5 == 0 { + result += "Plang" + } + if number % 7 == 0 { + result += "Plong" + } + if result == "" { + return strconv.Itoa(number) + } + return result +} \ No newline at end of file