Private Sub Command1_Click()
Dim i As Long,sum As Long
For i = 1 To 50 Step 2
sum = sum + i * (i + 1) * (i + 2)
Next
MsgBox "级数前50项奇数项和为:" & sum
End Su
Private Sub Command1_Click()
Dim i As Long,sum As Long
For i = 1 To 50 Step 2
sum = sum + i * (i + 1) * (i + 2)
Next
MsgBox "级数前50项奇数项和为:" & sum
End Su