'阶乘函数
Function jc(TmpNum As Integer)
Dim i As Integer
jc = 1
For i = 1 To TmpNum
jc = jc * i
Next i
End Function
有字数限制,发信息给你了
Private Sub Command1_Click()
Dim s#, i%, f#, j%
For i = 2 To 10 Step 2
f = 1
For j = 1 To i
f = f * j
Next j
s = s + f
Next i
Label1.Caption = "结果为:" & s
End Sub
vv
黑风洞滚滚滚滚滚滚滚滚滚滚滚滚滚滚滚滚滚滚滚