asp高手帮我看看

来源:百度知道 编辑:UC知道 时间:2024/05/15 12:15:22
<html>
<body>
<%dim int a
for i=11 to 23 step1
a=sqr(i)+a
next%>
</body>
</html>
这个一运行就出问题,高手们帮我看一下,到底错在哪了?

<html>
<body>
<%dim a
for i=11 to 23 step 1
a=sqr(i)+a
next%>

</body>
</html>

<%dim a
for i=11 to 23 step 1
a=sqr(i)+a
next
%>

asp是属于弱变量型的脚本语言,定义时不用指定类型

step 和 1之间要有空格