<body>
<!-- File: unit4.htm -->
<script type="text/javascript">
for (var intNum=5 ; intNum<16 ; intNum++)
{
intSqr = intNum*intNum;
document.write (intNum);
document.write(" " + intSqr + " </br>");
}
</script>
</body>
I have tried adding the <table></table> tags with the <tr></tr> and <td></td> tags before the 'for' loop and in the 'for' loop, but it either displays nothing or doesn't change. I'm confused and not sure what route to take. If someone could give me an idea on how to place the table within my code, I'd appreciate it.
Mod edit - Please

New Topic/Question
Reply


MultiQuote




|