Function F(n As Integer) As Single
If n > 1 And n <= 30 Then
F = n * F(n - 1)
Else
F = 1
End If
End Function
Private Sub Command1_Click()
Text2.Text = F(Val(Text1.Text))
End Sub
谁能帮我解释一下这代码什么意思,,,有点看不懂
...全文
713打赏收藏
解释一下代码
Function F(n As Integer) As Single If n > 1 And n <= 30 Then F = n * F(n - 1) Else F = 1 End If End Function Private Sub Command1_Click() Text2.Text = F(Val(Text1.Text)) End Sub 谁能帮我解释一下这代码什么意思,,,有点看不懂