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.6.29 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.6.28 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.6.27 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.6.26 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.6.25 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.6.24 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.6.23 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.6.22 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.6.21 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.6.20 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.6.19 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.6.18 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.6.17 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.6.16 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.6.15 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.6.14 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.6.13 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.6.12 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.6.11 tracks/csharp/exercises/raindrops/Example.cs
trackler-2.0.6.10 tracks/csharp/exercises/raindrops/Example.cs