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.98 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.97 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.96 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.95 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.94 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.93 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.92 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.91 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.90 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.89 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.88 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.87 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.86 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.85 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.84 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.83 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.82 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.81 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.80 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.2.1.79 tracks/csharp/exercises/raindrops/Example.cs