Private Sub Form_Load()
Dim I As Integer
For I = 1 To 20
Debug.Print "F(" & I & ")="; F(I); "SUMF(" & I & ")="; SUMF(I)
Next
End Sub
Function F(ByVal N As Long) As Long
If N = 1 Or N = 2 Then F = 1
If N > 2 Then F = F(N - 1) + F(N - 2)
End Function
Function SUMF(ByVal N As Long) As Long
If N = 1 Then SUMF = 1
If N > 1 Then SUMF = SUMF(N - 1) + F(N)
End Function