#include <iostream>

#include <cmath>

using namespace std;

int main( )

{

int Y, N, A, B, C, M, Q, S, W, DATE;

cout<<"Enter year\n";

cin>>Y;

N = Y - 1900;

A = N- (N/19)*19;

B = (7 * A + 1)/19;

C = (11 * A) + (4.0 - B);

M = C - (C / 29)*29;

Q = N /4.0;

S = N + Q + 31 - M;

W = S - (S / 7) * 7;

DATE = 25 - M - W;

if(DATE == 0)

{

cout<<"Easter is March, 31"<<endl;

}

else if(DATE < 0)

{

DATE += 31;

cout<<"Easter is March, "<<DATE<<endl;

}

else if(DATE > 0)

{

cout<<"Easter is april, "<<DATE<<endl;

}

}

Get help from top-rated tutors in any subject.

Efficiently complete your homework and academic assignments by getting help from the experts at homeworkarchive.com