1/1!+1/3!+1/5!+.+1/(2*n_1)!怎么用VF编写程序

来源:学生作业帮助网 编辑:作业帮 时间:2024/11/26 02:56:35
1/1!+1/3!+1/5!+.+1/(2*n_1)!怎么用VF编写程序
x)37T67z@JH+/PSYCߓϧs{gӶWt?oTO6;KIM,m tf^Aiҋ_uY-O3KI$_!(-H!!mkkX YP!tVTŶ`6{%>VIF 1,

1/1!+1/3!+1/5!+.+1/(2*n_1)!怎么用VF编写程序
1/1!+1/3!+1/5!+.+1/(2*n_1)!怎么用VF编写程序

1/1!+1/3!+1/5!+.+1/(2*n_1)!怎么用VF编写程序
clear
s=0
input "请输入N的值:" to n
for i=1 to n
k=2*i-1
r=1
for j=1 to k
r=r*j
endfor
p=1/r
s=s+p
endfor
?"1/1!+1/3!+1/5!+.+1/(2*n-1)!=",s