exercism/csharp/leap/leap.cs

14 lines
271 B
C#

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