谁能我把这段代码转换另2种代码格式!!(Do While……Loop)(While……Wend)
代码如下:
<html>
<head>
<title>循环语句运用</title>
<%
Dim counter,myNum
counter=0
myNum=20
Do Until myNun=10
myNum=myNum-1
counter=counter+1
Loop
response.write"循环重复了"&counter&"次。"
%>
</body>
</html>
do while..loop版:
<html>
<head>
<title>循环语句运用</title>
<%
Dim counter,myNum
counter=0
myNum=20
Do While myNun <> 10
myNum=myNum-1
counter=counter+1
Loop
response.write"循环重复了"&counter&"次。"
%>
</body>
</html>
While..Wend版:
<html>
<head>
<title>循环语句运用</title>
<%
Dim counter,myNum
counter=0
myNum=20
While myNun <> 10
myNum=myNum-1
counter=counter+1
Wend
response.write"循环重复了"&counter&"次。"
%>
</body>
</html>
望采纳