For...Next Loop Multiplication Table to Start on 0
- by nikl91
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?