1.
Private Sub command1_click()
Dim a As Integer, b As Integer
a = CInt(InputBox("输入一个三位的正整数"))
If a >= 100 And a 0 And m < 7 Then
For i = 0 To 9
s = s + jc(m + i)
Next
MsgBox s
Else
MsgBox "输入有误!"
End If
End Sub
Function jc(n As Integer) As Double
jc = 1
For i = 2 To n
jc = jc * i
Next
End Function