Sha256: 9a6d9b5481a047388f877fd089b50e713dc920cdce0f39a3f2a08681eb39a013

Contents?: true

Size: 396 Bytes

Versions: 125

Compression:

Stored size: 396 Bytes

Contents

public 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

125 entries across 125 versions & 1 rubygems

Version Path
trackler-2.0.5.8 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.5.7 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.5.6 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.5.5 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.5.4 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.5.3 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.5.2 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.5.1 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.5.0 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.4.0 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.3.9 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.3.8 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.3.7 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.3.6 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.3.5 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.3.4 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.3.3 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.3.2 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.3.1 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.3.0 tracks/csharp/exercises/raindrops/Example.cs