calculate a leap year C# with loop code example Example: c# leap year check (DateTime.IsLeapYear(jaartal))