[VB]求自然对数e的近似值
PrivateSubButton2_Click(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesBu...
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
Dim s, t As Double
Dim n, i As Integer
s = 1 : t = 1
For n = 1 To 50
t = t / n
s = s + t
Next n
Label1.Text = "计算了" & i & "项,他们的和e=" & s
我需要怎么编程,才能知道“i”的数值? 展开
Dim s, t As Double
Dim n, i As Integer
s = 1 : t = 1
For n = 1 To 50
t = t / n
s = s + t
Next n
Label1.Text = "计算了" & i & "项,他们的和e=" & s
我需要怎么编程,才能知道“i”的数值? 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询