exercism/csharp/leap/leap.cs

14 lines
271 B
C#
Raw Normal View History

2016-08-23 17:33:06 +00:00
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;
}
}