i jz started to learn vb.net - my 1st programming language

*
**
***
****
*****
in order to have the output as abv, i code in ths way:
<%
Dim a,b As Integer
For a=1 to 5
For b=0 to a-1
response.write("*")
next b
response.write("<br>")
next i
%>

How abt
*
***
*****
How should i code that?
[373 byte] By [allen81] at [2007-11-20 10:37:05]
# 1 Re: i jz started to learn vb.net - my 1st programming language
This:For a=1 to 5is actually shorthand for this:For a = 1 To 5 Step 1You can set the step to whatever you like, for instance 2:For a = 1 To 5 Step 2There are other ways as well, but this is the simplest.
jmcilhinney at 2007-11-10 3:08:33 >