Private Sub Command1_Click()
Dim n as integer, i as integer,s as double
n=val(inputbox("请输入n的值"))
s=0:i=1
do while ①
②
i=i+1
Loop
s= ③
Print s
End Sub