<%
max = request.querystring("max")
if max = "" then 
   max = 5 
else 
   if max > 50 then 
      max = 9
   else
      max = int(max)
   end if
end if
' main loop
for i =  1  to max
   ' first loop
   for j = 1 to max - i
      response.write( " " )
   next
   ' second loop
   for j = 1 to i
      response.write("*")
   next
   response.write("
") next %>