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

Version Path
trackler-2.2.1.180 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.179 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.178 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.177 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.176 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.175 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.174 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.173 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.172 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.171 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.170 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.169 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.167 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.166 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.165 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.164 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.163 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.162 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.161 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.160 tracks/csharp/exercises/raindrops/Example.cs