#include <stdio.h>
int main() {
int N; //입력 = 대문자
int count = 0;
scanf("%d", &N);
for (int i = 0; i < n; i++) {
printf(" ");
count++;
}
for (int n = 1; n <= 31; n++) {
if (n >= 10) {
printf(" %d", n);
}
else {
printf(" %d", n);
}
count++;
if (count % 7 == 0) {
printf("\n");
}
// j++;
// while ((j % 21) == 0) {
// printf("\n");
// }
}
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: