大家给看看 连加为什么不行 阶乘倒是可以
<html>
<head>
<title>DO....loop循环</title>
<script language="VBScript">
<!--
sub chkifirstwhile()
dim sum
dim i
sum=0
i=1
DO While i<=100
sum=sum+1
i=i+1
LOOP
msgbox "1-100之间所有整数之和为:" & sum
end sub
sub chklastwhile()
dim n
n=1
dim i
i=2
DO
n=n*i
i=i+1
LOOP While i<6
msgbox "6的阶乘为" & n
end sub
-->
</script>
</head>
<body>
<input type="button" name="button1" value="计算1-100之间整数之和" onclick="CHKFirstWhile">
<input type="button" name="button2" value="计算6的阶乘" onclick="CHKLastWhile">
</body>
<html>
从1加到100为什么不行?