回答編集履歴
1
sum追加
test
CHANGED
@@ -36,6 +36,18 @@
|
|
36
36
|
|
37
37
|
fmt.Println(list)
|
38
38
|
|
39
|
+
|
40
|
+
|
41
|
+
var sum float64
|
42
|
+
|
43
|
+
for _, v := range list {
|
44
|
+
|
45
|
+
sum += v
|
46
|
+
|
47
|
+
}
|
48
|
+
|
49
|
+
fmt.Println(sum)
|
50
|
+
|
39
51
|
}
|
40
52
|
|
41
53
|
```
|