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

Function main

contents/computus/code/rust/gauss_easter.rs:50–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

48}
49
50fn main() {
51 // Here, we will output the date of the Paschal full moon
52 // (using Servois notation), and Easter for 2020-2030
53
54 let years = 2020..=2030;
55
56 println!(
57 "The following are the dates of the Paschal full moon (using \
58 Servois notation) and the date of Easter for 2020-2030 AD:"
59 );
60 println!("Year\tServois number\tEaster");
61 years.for_each(|year| {
62 println!(
63 "{}\t{:<14}\t{}",
64 year,
65 computus(year, true),
66 computus(year, false),
67 )
68 });
69}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected