Write a JavaScript program to calculate multiplication table.
CODING:
<! DOCTYPE html>
<html>
<head>
<title>
</title>
<script type="text/javascript">
{
var n,c;
var n=prompt("Enter The Table OF Number=")
document.write("<h2>", "Multiplication Table Of ", n , " is:-" );
for(c=1;c<=10;++c)
document.write("<br>", n, "*", c, "=", n*c);
}
</script>
</head>
</html>
CODING:
<! DOCTYPE html>
<html>
<head>
<title>
</title>
<script type="text/javascript">
{
var n,c;
var n=prompt("Enter The Table OF Number=")
document.write("<h2>", "Multiplication Table Of ", n , " is:-" );
for(c=1;c<=10;++c)
document.write("<br>", n, "*", c, "=", n*c);
}
</script>
</head>
</html>
Comments
Post a Comment