Sha256: 73bfb0441f9bcebb37fb02f14c2afcca339eaca4caf91b0c074a3cdcb5f0d6a2
Contents?: true
Size: 403 Bytes
Versions: 271
Compression:
Stored size: 403 Bytes
Contents
public static class Raindrops { public static string Convert(int number) { string result = ""; if (number % 3 == 0) result += "Pling"; if (number % 5 == 0) result += "Plang"; if (number % 7 == 0) result += "Plong"; if (string.IsNullOrEmpty(result)) result = number.ToString(); return result; } }
Version data entries
271 entries across 271 versions & 1 rubygems