You are on page 1of 5

/* Print January */ printf(" Su Mo Tu We Th Fr Sa\n");

/* prints spaces before the first date is printed */ for (i = 0; i < weekDay; i++) {

printf("

}

");

/* prints the dates */ for (i = 1; i <= 31; i++) { printf("%3d", i); if (!((i+weekDay) % DAYS_IN_WEEK)) printf("\n");

}

printf("\n");

/* Print February */ int februaryStart = (weekDay + 31) % 7;

printf("\n"); // To make space for the next month printf(" Su Mo Tu We Th Fr Sa\n");

/* prints spaces before the first date is printed */ for (i = 0; i < februaryStart; i++) {

printf("

}

");

/* prints the dates */ for (i = 1; i <= 28; i++) { printf("%3d", i); if (!((i + februaryStart) % DAYS_IN_WEEK)) printf("\n");

}

printf("\n");

/* Print January */

printf(" Su Mo Tu We Th Fr Sa\n");/* Print January */ /* prints spaces before the first date is printed */ for (i

/* prints spaces before the first date is printed */ for (i = 0; i < weekDay; i++) {

printf("

}

");

/* prints the dates */ for (i = 1; i <= 31; i++) { printf("%3d", i); if (!((i+weekDay) % DAYS_IN_WEEK)) printf("\n");

}

printf("\n");

/* Print February */ int februaryStart = (weekDay + 31) % 7;

printf("\n"); // To make space for the next month

printf(" Su Mo Tu We Th Fr Sa\n");7; printf("\n"); // To make space for the next month /* prints spaces before the first

/* prints spaces before the first date is printed */ for (i = 0; i < februaryStart; i++) {

printf("

}

");

/* prints the dates */ for (i = 1; i <= 28; i++) { printf("%3d", i); if (!((i + februaryStart) % DAYS_IN_WEEK)) printf("\n");

}

printf("\n");

1
1

Word-for-word identical

/* Print January */

printf(" Su Mo Tu We Th Fr Sa\n");/* Print January */ /* prints spaces before the first date is printed */ for (i

/* prints spaces before the first date is printed */ for (i = 0; i < weekDay; i++) {

printf("

}

");

/* prints the dates */ for (i = 1; i <= 31; i++) { printf("%3d", i); if (!((i+weekDay) % DAYS_IN_WEEK)) printf("\n");

}

printf("\n");

/* Print February */ int februaryStart = (weekDay + 31) % 7;

printf("\n"); // To make space for the next month

printf(" Su Mo Tu We Th Fr Sa\n");7; printf("\n"); // To make space for the next month /* prints spaces before the first

/* prints spaces before the first date is printed */ for (i = 0; i < februaryStart; i++) {

printf("

}

");

/* prints the dates */ for (i = 1; i <= 28; i++) { printf("%3d", i); if (!((i + februaryStart) % DAYS_IN_WEEK)) printf("\n");

}

printf("\n");

Word-for-word identicali); if (!((i + februaryStart) % DAYS_IN_WEEK)) printf("\n"); } printf("\n"); Word-for-word identical

Word-for-word identicali); if (!((i + februaryStart) % DAYS_IN_WEEK)) printf("\n"); } printf("\n"); Word-for-word identical

/* Print January */

printf(" Su Mo Tu We Th Fr Sa\n");/* Print January */ /* prints spaces before the first date is printed */ for (i

/* prints spaces before the first date is printed */ for (i = 0; i < weekDay; i++) {

printf("

}

");

/* prints the dates */ for (i = 1; i <= 31; i++) { printf("%3d", i); if (!((i+weekDay) % DAYS_IN_WEEK)) printf("\n");

}

printf("\n");

/* Print February */ int februaryStart = (weekDay + 31) % 7;

printf("\n"); // To make space for the next month

printf(" Su Mo Tu We Th Fr Sa\n");7; printf("\n"); // To make space for the next month /* prints spaces before the first

/* prints spaces before the first date is printed */ for (i = 0; i < februaryStart; i++) {

printf("

}

");

/* prints the dates */ for (i = 1; i <= 28; i++) { printf("%3d", i); if (!((i + februaryStart) % DAYS_IN_WEEK)) printf("\n");

}

printf("\n");

1
1

Word-for-word identical

2
2

Word-for-word identical

3
3

Word-for-word identical

1

2

3

/* Print January */

printf(" Su Mo Tu We Th Fr Sa\n");1 2 3 /* Print January */ /* prints spaces before the first date is printed

/* prints spaces before the first date is printed */ for (i = 0; i < weekDay; i++) {

printf("

}

");

/* prints the dates */ for (i = 1; i <= 31; i++) { printf("%3d", i);

if (!((i+weekDay) % DAYS_IN_WEEK)) printf("\n");

}

printf("\n");

/* Print February */ int februaryStart = (weekDay + 31) % 7;

printf("\n"); // To make space for the next month

1

2

3

printf(" Su Mo Tu We Th Fr Sa\n");// To make space for the next month 1 2 3 /* prints spaces before the

/* prints spaces before the first date is printed */ for (i = 0; i < februaryStart; i++) {

printf("

}

");

/* prints the dates */ for (i = 1; i <= 28; i++) { printf("%3d", i);

if (!((i + februaryStart) % DAYS_IN_WEEK)) printf("\n");

}

printf("\n");

1
1

Word-for-word identical

2
2

Word-for-word identical

3
3

Word-for-word identical

4
4

Unique Code