<html>
<head>
<script language="javascript">
// Use single-spaced text for Multiplication table
document.write("<h3 align='Center'>Multiplication Table</h3>");
document.write("<CENTER><BLOCKQUOTE><STRONG><PRE><FONT COLOR='000080'>")
var i, j, total; // global variables
while ( i< = 5){
for (j = 1; j < 20; j++) {
total = i * j;
total = " " + total
///add space before each number
// Add another space before single digits
if (total < 10) total = " " + total;
// Display result
document.write(total);
} // end inner j loop
document.write("<BR>"); // end of line break
} // end of i outer loop
document.write("</FONT></PRE></STRONG></BLOCKQUOTE></CENTER>");
</script>
</head>
<body>
</body>
</html>