MCPcopy Create free account
hub / github.com/algorithm-archivists/algorithm-archive / main

Function main

contents/computus/code/cpp/gauss_easter.cpp:51–60  ·  view source on GitHub ↗

Here, we will output the date of the Paschal full moon (using Servois notation), and Easter for 2020-2030

Source from the content-addressed store, hash-verified

49// Here, we will output the date of the Paschal full moon (using Servois
50// notation), and Easter for 2020-2030
51int main() {
52 std::cout << "The following are the dates of the Paschal full moon (using "
53 "Servois notation) and the date of Easter for 2020-2030 AD:\n"
54 "Year\tServois number\tEaster\n";
55
56 for (int year = 2020; year <= 2030; year++) {
57 std::cout << year << "\t\t" << computus(year, true) << '\t'
58 << computus(year) << std::endl;
59 }
60}

Callers

nothing calls this directly

Calls 1

computusFunction · 0.70

Tested by

no test coverage detected