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-10T12:31:50Z Indexed on 2010/06/10 12:32 UTC
Read the original article Hit count: 224

Filed under:
|
|

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 = "" For row = 1 to 50 mult = mult & "" For col= 1 to 20 mult = mult & "" & row * col & "" Next mult = mult & "" Next mult = mult & "" response.write mult

This is what I have so far. Any suggestions?

© Stack Overflow or respective owner

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: 224

Filed under:
|
|

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

Related posts about asp-classic

Related posts about vbscript