質問編集履歴

3

dddd

2017/03/22 05:29

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -35,3 +35,9 @@
35
35
  [error] required: Int
36
36
 
37
37
  ```
38
+
39
+
40
+
41
+ ---**3.22**
42
+
43
+ 例のプログラムをミスっていたので修正。

2

っっd

2017/03/22 05:29

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -18,9 +18,7 @@
18
18
 
19
19
  def addTen(n:Int) : Int ={
20
20
 
21
- n += 10
21
+ n + 10
22
-
23
- n
24
22
 
25
23
  }
26
24
 

1

帰り値を追記

2017/03/22 05:27

投稿

退会済みユーザー
test CHANGED
File without changes
test CHANGED
@@ -20,6 +20,8 @@
20
20
 
21
21
  n += 10
22
22
 
23
+ n
24
+
23
25
  }
24
26
 
25
27
  }