For...Next Loop Multiplication Table to Start on 0
Posted
by nikl91
on Stack Overflow
See other posts from Stack Overflow
or by nikl91
Published on 2010-06-10T13:00:33Z
Indexed on
2010/06/10
13:02 UTC
Read the original article
Hit count: 231
I have my For...Next loop with a multiplication table working just fine, but I want the top left box to start at 0 and move on from there. Giving me some trouble.
dim mult
mult = "<table width = ""100%"" border= ""1"" >"
For row = 1 to 50
mult = mult & "<tr align = ""center"" >"
For col= 1 to 20
mult = mult & "<td>" & row * col & "</td>"
Next
mult = mult & "</tr>"
Next
mult = mult & "</table>"
response.write mult
This is what I have so far. Any suggestions?
© Stack Overflow or respective owner