求1-1/2+1/3-1/4+……+1/99-1/100的值用vf程序怎么编
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/25 17:06:54
求1-1/2+1/3-1/4+……+1/99-1/100的值用vf程序怎么编求1-1/2+1/3-1/4+……+1/99-1/100的值用vf程序怎么编求1-1/2+1/3-1/4+……+1/99-1
求1-1/2+1/3-1/4+……+1/99-1/100的值用vf程序怎么编
求1-1/2+1/3-1/4+……+1/99-1/100的值用vf程序怎么编
求1-1/2+1/3-1/4+……+1/99-1/100的值用vf程序怎么编
clear
s=0
k=1
for i=1 to 100
m=k/i
s=s+m
k=-k
endfor
"1-1/2+1/3-1/4+……+1/99-1/100=",s