asp代码for循环问题

<%="100内整数和for循环介绍"%><%dimsamsam=0fori=1to100step1sam=sam+inextresponse.Write("theres... <%="100内整数和for循环介绍"%>
<%
dim sam
sam=0
for i=1 to 100 step 1
sam=sam+i
next
response.Write("the result")
response.Write(sum)

%>100Ěջʽ?ͦorѭ???鉜the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result5565the result556
请问为什么??
显示的内容却是
还有,next作用是什么?
展开
 我来答
舒乐秋
2011-09-24 · TA获得超过146个赞
知道答主
回答量:577
采纳率:100%
帮助的人:278万
展开全部
<%dim qyi%>
<select name="qy">
<% FOR qyi=1 TO rs("qz") %>
<option><%=rs(3+qyi)%></option>
<%qyi
qui=qui+1 %>
<%NEXT%>
</select>

少了<%%>没执行。
具体你那一堆变量太乱,一点也不不标准。看得头痛。建议不要用拼音命名变量,那是很低级的非标准。尽量使用英文。
gdhdq1
2011-09-23 · 超过14用户采纳过TA的回答
知道答主
回答量:40
采纳率:0%
帮助的人:48.6万
展开全部
程序只会输出the result,你看清楚sam和sum!大意输错了吧?呵呵。。。还有你后面这一大段是什么?
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式