can someone help me with my multiplication table. it's not one that goes: 1 2 3 4 5 6 etc. it goes like this instead: 2 4 8 16 32 64 etc. (or at least it's supposed to)
only the first row works. here's my code. i have 2 tables, and neither of them work the way i want them too. the first row is supposed to have the same values at the first column
Code:<% Dim row, col, outp, exp %> <table> <% exp = 1 for row = 1 to 10 response.write "<tr>" for col = 1 to 10 outp = 2 * exp response.write "<td>" & outp & "</td>" exp = 2 * exp next exp = row exp = 2 * exp response.write "</tr>" next %> </table>you can view the output @ www.stoneviper.com/aspCode:<% Dim row, col, outp, exp %> <table> <% exp = 1 for row = 1 to 10 response.write "<tr>" for col = 1 to 10 outp = 2 * exp response.write "<td>" & outp & "</td>" exp = 2 * exp next exp = 2 * row * row response.write "</tr>" next %> </table>
please help. thanks.





.

Bookmarks