第1个回答 2012-12-30
Private Sub Form_Click()
Dim j As Double, sum As Double, n As Integer, fh as integer
j = 1
n = 1
fh = 1 '控制符号,第一为1 ,n=2时为-1
Do While n <= 10
j = j * n
sum = sum + j * fh
fh = - fh
n = n + 1
Loop
Print sum
End Sub本回答被网友采纳
第2个回答 2012-12-30
Private Sub Form_Click()
Dim jc As Double, sum As Double, n As Integer
jc = 1
n = 1
Do While n <= 10
jc = jc * n
sum = sum + jc
n = n + 1
Loop
Print sum
End Sub
第3个回答 2012-12-30
Private Sub Form_Click()
Dim j As Double, sum As Double, n As Integer, k as integer
j = 1
n = 1
k = 1
Do While n <= 10
j = j * n
sum = sum + j * k
k = - k
n = n + 1
Loop
Print sum
End Sub