From a9fe8ee9224aefd58df385e5f78f9353039545ed Mon Sep 17 00:00:00 2001 From: AlternateWalls <71268229+AlternateWalls@users.noreply.github.com> Date: Tue, 5 Oct 2021 17:52:56 -0400 Subject: [PATCH] Update easter.cpp --- others/easter.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/others/easter.cpp b/others/easter.cpp index b75663f03..39b5d1abc 100644 --- a/others/easter.cpp +++ b/others/easter.cpp @@ -1,6 +1,13 @@ // You can read more about the reason behind the algorithm itself here: // https://en.wikipedia.org/wiki/Date_of_Easter + /* Testing data: + * 2003 - 20th of April (4/20) - Passed + * 1830 - 11th of April (4/11) - Passed + * 2020 - 12th of April (4/12) - Passed + * 1910 - 27th of March (3/27) - Passed + */ + class easter { public: @@ -8,7 +15,7 @@ class easter { if (y > 1582) { - // Calculations + // Calculations (It's not worth going into detail and naming each of these differently) int a = y % 19; int b = y / 100; int c = y % 100;