vfp 计算1/1!,1/2!,1/3!.1/10!之和s=0 for i=1 to 10 s=s+1/jc(i) endfor ?“值为”+str(s) func jcparametrs num t=1for n=1 to num t=t*n endforreturn t endfunc错在哪

问题描述:

vfp 计算1/1!,1/2!,1/3!.1/10!之和
s=0
for i=1 to 10
s=s+1/jc(i)
endfor
?“值为”+str(s)
func jc
parametrs num
t=1
for n=1 to num
t=t*n
endfor
return t
endfunc
错在哪