主题:请指正程式中错误??
求5!+6!+7!+8!之和不对请大虾指出那出错了!
cls
s=0
for n=5 to 8
gosub 10
s=s+t
next n
print "s=";s
end
10: t=1
for i= 1 to n
t=n*t
next i
return
运行后结果不是46200.[em10]
cls
s=0
for n=5 to 8
gosub 10
s=s+t
next n
print "s=";s
end
10: t=1
for i= 1 to n
t=n*t
next i
return
运行后结果不是46200.[em10]