Пример #1
0
int main()
{
	int y;

	for (y = 2008; y <= 2121; y++) {
		if (wday(y, 12, 25) == 0) printf("%04d-12-25\n", y);
	}

	return 0;
}
Пример #2
0
int main(int argc, char const* argv[]) {
    int count = 0;
    int y, m;
    for (y = 1901; y <= 2000; y++) {
        for (m = 0; m < 12; m++) {
            if (!wday(y, m, 1)) {
                count++;
            }
        }
    }
    printf("%d\n", count);
    return 0;
}