質問編集履歴
2
コードの追加
title
CHANGED
File without changes
|
body
CHANGED
@@ -12,5 +12,58 @@
|
|
12
12
|
それをコードで現すとなると現段階の自分の知識では思いつきません。
|
13
13
|
ネットで配列というものを見たのですが習っていないので使えません...
|
14
14
|
|
15
|
+
追記
|
16
|
+
・かける所までコードを書きました。
|
15
17
|
|
16
18
|
|
19
|
+
```ここに言語を入力
|
20
|
+
Sub test4()
|
21
|
+
|
22
|
+
Dim a, b, c, d, e, f, g, h, i As Long
|
23
|
+
|
24
|
+
a = 1
|
25
|
+
|
26
|
+
If Cells(1, 1) > Cells(2, 1) Then
|
27
|
+
f = Cells(1, 1)
|
28
|
+
Cells(1, 1) = Cells(2, 1)
|
29
|
+
Cells(2, 1) = f
|
30
|
+
|
31
|
+
End If
|
32
|
+
|
33
|
+
If Cells(2, 1) > Cells(3, 1) Then
|
34
|
+
g = Cells(2, 1)
|
35
|
+
Cells(2, 1) = Cells(3, 1)
|
36
|
+
Cells(3, 1) = f
|
37
|
+
|
38
|
+
End If
|
39
|
+
|
40
|
+
If Cells(3, 1) > Cells(4, 1) Then
|
41
|
+
g = Cells(3, 1)
|
42
|
+
Cells(3, 1) = Cells(4, 1)
|
43
|
+
Cells(4, 1) = f
|
44
|
+
|
45
|
+
|
46
|
+
End If
|
47
|
+
|
48
|
+
If Cells(4, 1) > Cells(5, 1) Then
|
49
|
+
g = Cells(4, 1)
|
50
|
+
Cells(4, 1) = Cells(5, 1)
|
51
|
+
Cells(5, 1) = f
|
52
|
+
|
53
|
+
End If
|
54
|
+
|
55
|
+
If Cells(5, 1) > Cells(6, 1) Then
|
56
|
+
g = Cells(5, 1)
|
57
|
+
Cells(5, 1) = Cells(6, 1)
|
58
|
+
Cells(6, 1) = f
|
59
|
+
|
60
|
+
End If
|
61
|
+
|
62
|
+
|
63
|
+
|
64
|
+
End Sub
|
65
|
+
|
66
|
+
```
|
67
|
+
|
68
|
+
|
69
|
+
|
1
文法の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
以下の数字を昇順で並び替えるという課題が出ました。
|
2
2
|
|
3
3
|
19
|
4
4
|
12
|