展开全部
写个循环嵌套就行了
VB代码如下:(运算结果是:3.10350532295462E+64)
Private Sub Command1_Click()
Dim Jc As Double, I As Integer, J As Integer, Jch As Double
Jch = 0
For I = 1 To 50
Jc = 1
For J = 1 To I
Jc = Jc * J
Next J
Jch = Jch + Jc
Next I
Text1.Text = Jch
End Sub
VB代码如下:(运算结果是:3.10350532295462E+64)
Private Sub Command1_Click()
Dim Jc As Double, I As Integer, J As Integer, Jch As Double
Jch = 0
For I = 1 To 50
Jc = 1
For J = 1 To I
Jc = Jc * J
Next J
Jch = Jch + Jc
Next I
Text1.Text = Jch
End Sub
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询