我想设计一个求和程序,可以计算范围内的任意两个数字。
但是没有运行,找不到错误~
<BODY>
<p align ="center"></p>
<form name = "form1" method ="post" action ="">
<p>enter the range</p>
lower limit<input name ="tlow" type= "text" id ="tlow" size ="10">higher limit
<input name ="thigh" type ="text" id ="thigh" size ="10">
<input type ="submit" name ="submit" value ="sum"
</form>
<%
Dim i, sum,low,high
sum=0
low=request("tlow")
high=request("thigh")
For i=low To high
sum= sum + i
Next
response.write"sum from "& low &"to" & high &"is:"& sum
%>
</BODY>