C# Zeller's algorithm

Program

If the runner doesn’t load here, open the code snippet directly: .NET Fiddle

About

About Zeller’s algorithm

Zeller’s algorithm is a simple formula used to figure out the day of the week for any given date — past, present, or future. For example, you can use it to find out what day of the week your birthday landed on in 1985, or what day Christmas will fall on in 2030. It was developed by Christian Zeller in the 19th century and works by taking a date (day, month, and year), doing some clever math with divisions and remainders, and giving back a number that corresponds to the weekday (like 0 = Saturday, 1 = Sunday, etc.). In short: Zeller’s algorithm is like a little time machine in math form, turning dates into weekdays.

The task

More text to come

About Sara the programmer

More text to come