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.0.8.36 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.8.35 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.8.34 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.8.33 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.8.32 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.8.31 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.8.30 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.8.29 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.8.28 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.8.27 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.8.26 tracks/csharp/exercises/raindrops/Example.cs