展开全部
Private Sub Command1_Click()
Dim I As Integer, J As Integer, NS As Double, T As Double
For I = 1 To 50
T = 1
For J = 1 To I
T = T * J
Next
NS = NS + 1 / T
Next
NS = NS + 1
Text1.Text = Round(NS, 20)
End Sub
结果:e = 2.71828182845905
Dim I As Integer, J As Integer, NS As Double, T As Double
For I = 1 To 50
T = 1
For J = 1 To I
T = T * J
Next
NS = NS + 1 / T
Next
NS = NS + 1
Text1.Text = Round(NS, 20)
End Sub
结果:e = 2.71828182845905
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
Private Sub Form_Load()
For i = 1 To 50
n = 1
For j = 2 To i
n = n * j
Next
s = s + 1 / n
Next
MsgBox s
End Sub
For i = 1 To 50
n = 1
For j = 2 To i
n = n * j
Next
s = s + 1 / n
Next
MsgBox s
End Sub
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
2011-04-20
展开全部
Private Sub Form_click()
jc = 1
s = 1
For i = 1 To 50
jc = jc * i
s = s + 1 / jc
Next
MsgBox s
End Sub
jc = 1
s = 1
For i = 1 To 50
jc = jc * i
s = s + 1 / jc
Next
MsgBox s
End Sub
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询