x^2/1!-x^4/3!+x^6/5!-x^8/7!+...+(-1)^(n+1)*x^2N/(2n+1)!

编写程序
用QB

cls
s=0
f=1
input x,n
for i=2 to n
p=1
for j= 1 to i-1
p=P*j
next j
s=s+(x^i)/p*f
f=-f
next i
print s
end
温馨提示:答案为网友推荐,仅供参考
相似回答