回答編集履歴
1
追記
test
CHANGED
@@ -26,16 +26,32 @@
|
|
26
26
|
|
27
27
|
tmp = gokyouka2[0];
|
28
28
|
|
29
|
-
goukei = tmp[0]
|
29
|
+
goukei = tmp[0] + tmp[1] + tmp[2] + tmp[3] +tmp[4];
|
30
30
|
|
31
31
|
|
32
32
|
|
33
33
|
tmp = gokyouka2[1];
|
34
34
|
|
35
|
-
goukei = tmp[0]
|
35
|
+
goukei = tmp[0] + tmp[1] + tmp[2] + tmp[3] +tmp[4];
|
36
36
|
|
37
37
|
|
38
38
|
|
39
39
|
tmp = gokyouka2[2];
|
40
40
|
|
41
|
-
goukei = tmp[0]
|
41
|
+
goukei = tmp[0] + tmp[1] + tmp[2] + tmp[3] +tmp[4];
|
42
|
+
|
43
|
+
|
44
|
+
|
45
|
+
あ、こっちの方がわかりやすいかも
|
46
|
+
|
47
|
+
|
48
|
+
|
49
|
+
goukei = gokyouka2[0][0]+ gokyouka2[0][1]+gokyouka2[0][2]+gokyouka2[0][3]+gokyouka2[0][4];
|
50
|
+
|
51
|
+
|
52
|
+
|
53
|
+
goukei = gokyouka2[1][0]+ gokyouka2[1][1]+gokyouka2[1][2]+gokyouka2[1][3]+gokyouka2[1][4];
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
ループに直すのは九九表示するようなものなので、簡単でしょ?
|