17 - Estructura repetitiva do/while/loop |
<%option explicit%>
<html>
<head>
<title>problema</title>
</head>
<body>
<%
dim nro,suma,cantidad
nro=1
suma=0
do while suma<=1000
response.write(nro & " - ")
suma=suma+nro
nro=nro+1
loop
response.write("<br>")
response.write("Se sumaron " & (nro-1) & " números")
%>
</body>
</html>