告诉我ASP代码答案吧,急呀

来源:百度知道 编辑:UC知道 时间:2024/07/07 01:03:02
1!+2!+3!+………+10!=
这个等于多少,在ASP中如何用代码算出来 。

'n!=n*(n-1)*...*1
<%
response.write exam(5)
function exam(N)
dim sum,tmp
sum=0
for i=1 to N
tmp=1
for j=1 to i
tmp=tmp*j
next
sum=sum+tmp
next
exam=sum
end Function
%>

我不知道!在数学里是什么意思了。