回答編集履歴

1

コードの修正

2022/07/16 14:31

投稿

kazuma-s
kazuma-s

スコア8224

test CHANGED
@@ -1,8 +1,8 @@
1
1
  ```Java
2
2
  System.out.print(" ".repeat(--startDay));
3
- for (int i = 1; i <= lastDay; i++){
3
+ for (int i = 1; i <= lastDay; i++) {
4
4
  System.out.printf("%3d", i);
5
- if(++startDay % 7 == 0) System.out.println();
5
+ if (++startDay % 7 == 0) System.out.println();
6
6
  }
7
7
  System.out.println();
8
8
  ```