Easter Sunday is a mobile holiday corresponding to the first Sunday after the first full moon of the spring. Write a program to compute the day and the month of the Easter Sunday of every given year .
Below, := indicates assignment, div
indicates integer division, and mod indicates the remainder
of the integer division. To solve this problem, use the Gauss
method:
Compute
If , then and .
Otherwise, if and , then and .
Otherwise, if and and , then and .
Otherwise, and .
Input consists of several natural numbers between 1800 and 9999.
Print the day and the month of the Easter Sunday of each year.
Author: Unknown
Translator: Carlos Molina
Generation: 2026-01-25T10:26:14.665Z
© Jutge.org, 2006–2026.
https://jutge.org