代码如下:
Private Sub Command1_Click()
Dim a(10) As Integer
a(1) = 1
a(2) = 1
For i = 3 To 10
a(i) = a(i - 2) + a(i - 1)
Next i
For i = 1 To 10
Print a(i);
Next i
End Su
代码如下:
Private Sub Command1_Click()
Dim a(10) As Integer
a(1) = 1
a(2) = 1
For i = 3 To 10
a(i) = a(i - 2) + a(i - 1)
Next i
For i = 1 To 10
Print a(i);
Next i
End Su