質問編集履歴

5

文言修正

2018/05/17 06:29

投稿

atom_0407
atom_0407

スコア13

test CHANGED
File without changes
test CHANGED
@@ -18,4 +18,6 @@
18
18
 
19
19
  p xxx(a,b,c)
20
20
 
21
+
22
+
21
- #=>[c,b,a]
23
+ [c,b,a]

4

文言修正

2018/05/17 06:29

投稿

atom_0407
atom_0407

スコア13

test CHANGED
File without changes
test CHANGED
@@ -18,6 +18,4 @@
18
18
 
19
19
  p xxx(a,b,c)
20
20
 
21
-
22
-
23
- #=> [c,b,a]
21
+ #=>[c,b,a]

3

文言修正

2018/05/17 06:28

投稿

atom_0407
atom_0407

スコア13

test CHANGED
File without changes
test CHANGED
@@ -4,14 +4,20 @@
4
4
 
5
5
 
6
6
 
7
- def xxx[a,b,c]
7
+ def xxx(a,b,c)
8
8
 
9
9
 
10
+
11
+ return xxx
10
12
 
11
13
  end
12
14
 
13
15
 
14
16
 
15
- p xxx[a,b,c]
17
+ xxx=[a,b,c]
16
18
 
19
+ p xxx(a,b,c)
20
+
21
+
22
+
17
- [c,b,a]
23
+ #=> [c,b,a]

2

文言修正

2018/05/17 06:27

投稿

atom_0407
atom_0407

スコア13

test CHANGED
File without changes
test CHANGED
@@ -1,11 +1,17 @@
1
- sort、reverseメソッド等を使用しないで、配列の値を逆順にして値を返すプログラム書きたいです。
1
+ sort、reverseメソッド等を使用しないで、配列の値を逆順にして値を返すメソッド作りたいです。
2
2
 
3
- ご教示のほどよろしくお願い致します。
3
+ ご教よろしくお願い致します。
4
4
 
5
5
 
6
6
 
7
- 配列=[a,b,c]
7
+ def xxx[a,b,c]
8
8
 
9
9
 
10
10
 
11
+ end
12
+
13
+
14
+
15
+ p xxx[a,b,c]
16
+
11
17
  [c,b,a]

1

文言修正

2018/05/17 06:08

投稿

atom_0407
atom_0407

スコア13

test CHANGED
File without changes
test CHANGED
@@ -1,6 +1,6 @@
1
1
  sort、reverseメソッド等を使用しないで、配列の値を逆順にして値を返すプログラムを書きたいです。
2
2
 
3
- 回答のほどよろしくお願い致します。
3
+ ご教示のほどよろしくお願い致します。
4
4
 
5
5
 
6
6