Sha256: dff8af4058e62e4f5b3fa64a25d62ed173088c6348eac25cefdbefb64bb8d5c0

Contents?: true

Size: 168 Bytes

Versions: 121

Compression:

Stored size: 168 Bytes

Contents

public class Year
{
    public static bool IsLeap(int year)
    {
        if (year % 100 == 0)
            return year % 400 == 0;
        return year % 4 == 0;
    }
}

Version data entries

121 entries across 121 versions & 1 rubygems

Version Path
trackler-2.0.8.20 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.8.19 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.8.18 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.8.17 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.8.16 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.8.15 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.8.14 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.8.13 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.8.12 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.8.11 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.8.10 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.8.9 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.8.8 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.8.7 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.8.6 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.8.5 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.8.4 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.8.3 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.8.2 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.8.1 tracks/csharp/exercises/leap/Example.cs