#include <stdio.h>

#include "easter.h"
//void easter(int year, int *month, int *day) ;   // "easter.h" only includes this function declaration

int main() {	// Code to compute the date of Easter --- MAKE MINIMAL CHANGES!

	int year, month, day;
	int startyear, endyear;

	char *monthstring;			// A string to hold the month name

	printf("Enter the start year:");
	scanf("%d", &startyear);
	printf("Enter the end year:");
	scanf("%d", &endyear);

	startyear = 2010;
	if (1700 <= startyear < 1800) {			/* For the heck of it 			*/
		printf("startyear is in 1700s!\n");	/* flag startyear in the 1700s	*/
	}

	if (1800 <= startyear & startyear < 1900) /* also startyear in the 1800s */
		printf("startyear is in 1800s!\n");	/* using different test expression */

	if (startyear = 2000) ;				// and also startyear equal to 2000
		printf("startyear");			// printf broken into multiple lines
		printf("starts in 2000!\n");	// (leave it as two lines)

	for (year = startyear; year<endyear; year++) {

		easter(year, &month, &day);   // Computes Easter given year. Results in month and day

		printf("Date of Easter in %d is %s %d\n", year, month==3?"March":"April", day);

		if (month = 3) {			/* This is another way to print the month //
			monthstring = "March";
		}
		else {						/* else part of if statement */
			monthstring = "April";
		}
		printf("Date of Easter in %d is %s %d\n", year, monthstring, day);

	}
	return 0;
}
