vb:求s,s=1+1⼀2*2+1⼀3*3+1⼀4*4+...1⼀10*10

2024-11-22 04:01:57
推荐回答(3个)
回答(1):

Private Sub C1_Click()
Dim a, s As Single
For i = 1 To 10
a = 1 / (i * i)
s = s + a
Next
Print s
End Sub

回答(2):

Private Sub C1_Click()
Dim a, s As Single
For i = 1 To 10
a = 1 / (i * i)
s = s + a
Next

回答(3):

1