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.6.25 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.6.24 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.6.23 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.6.22 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.6.21 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.6.20 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.6.19 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.6.18 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.6.17 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.6.16 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.6.15 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.6.14 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.6.13 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.6.12 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.6.11 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.6.10 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.6.9 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.6.8 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.6.7 tracks/csharp/exercises/leap/Example.cs
trackler-2.0.6.6 tracks/csharp/exercises/leap/Example.cs