Write 99 multiplication tables with JavaScript.

<!DOCTYPE html>
<html>

<head>
<meta charset=”utf-8″ />
<title></title>

<script>
//Print 99 multiplication table
 
for (var i = 1; i <= 9; i++) {
for (var j = 1; j <= i; j++) {
document.write(j + “&times;” + i + “=” + i * j + “\t”);
}
document.write(“<br />”);
}
 
</script>
</head>

<body>

</body>

</html>

Leave a Reply

Your email address will not be published. Required fields are marked *