1/1!+1/3!+1/5!+.+1/(2*n_1)!怎么用VF编写程序
来源:学生作业帮助网 编辑:作业帮 时间:2024/11/15 09:10:11
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