Chapter 3: Problem 8
The Gregorian epact is the number of days between January \(1^{\text {st}}\) and the previous new moon. This value is used to figure out the date of Easter. It is calculated by these formulas (using int arithmetic): \\[ C=y e a r / / 100 \\] \\[ e p a c t=(8+(C / / 4)-C+((8 C+13) / / 25)+11(\text { year } \% 19)) \% 30 \\] Write a program that prompts the user for a 4-digit year and then outputs the value of the epact.
Short Answer
Step by step solution
Key Concepts
These are the key concepts you need to understand to accurately answer the question.