日期:2014-05-17  浏览次数:20968 次

如何求它们的和?
VBScript code

<%
for i=1 to 3

response.Write(i)
response.Write("</br>")
next
%>




用口算我们可以算出是6,怎么计算它们的和输出来?

------解决方案--------------------
http://www.pconline.com.cn/pcedu/empolder/wz/asp/10111/15094.html
<%
dim i,sum
for i=1 to 3
sum=sum+i
next
End sub
response.Write(sum)
response.Write("</br>")
%>
这样呢