回答編集履歴
2
コードの修正
test
CHANGED
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
int i, j;
|
26
26
|
|
27
|
-
for (i = j = n; i > 0; j += 2)
|
27
|
+
for (i = n-1, j = n; i > 0; j += 2)
|
28
28
|
|
29
29
|
plot(' ', i--), plot('*', j), putchar('\n');
|
30
30
|
|
@@ -75,3 +75,7 @@
|
|
75
75
|
|
76
76
|
|
77
77
|
```
|
78
|
+
|
79
|
+
### 追記
|
80
|
+
|
81
|
+
コードを修正したら、バグが入ったので、再修正しました。
|
1
コードの修正
test
CHANGED
@@ -22,15 +22,17 @@
|
|
22
22
|
|
23
23
|
{
|
24
24
|
|
25
|
-
|
25
|
+
int i, j;
|
26
26
|
|
27
|
-
|
27
|
+
for (i = j = n; i > 0; j += 2)
|
28
28
|
|
29
|
-
|
29
|
+
plot(' ', i--), plot('*', j), putchar('\n');
|
30
30
|
|
31
|
-
|
31
|
+
for (; i < n ; j -= 2)
|
32
32
|
|
33
|
-
|
33
|
+
plot(' ', i++), plot('*', j), putchar('\n');
|
34
|
+
|
35
|
+
|
34
36
|
|
35
37
|
}
|
36
38
|
|