Write a JavaScript program to print table of a given number. In this program user is ask to enter the integer number after that it get the table of given number.
<html>
<head>
<title>Print table of given number</title>
</head>
<body>
<h3>Table of given number </h3>
<script>
var n = prompt("Enter the number", "1");
n = parseInt(n);
for(var i=1; i<=10; i++)
{
document.write(n*i);
document.write("<BR>");
}
</script>
</body>
</html>
