FACTORIAL
<html>
<head><title>factorial</head></title>
<body>
<script language="javascript">
var i,n,fact=1;
n=prompt("enter the no_");
n=parseInt(n);
for(i=1;i<=n;i++)
{
fact=fact*i;
}
document.write("factorial of a no_"+fact);
</script></body></html>
<html>
<head><title>factorial</head></title>
<body>
<script language="javascript">
var i,n,fact=1;
n=prompt("enter the no_");
n=parseInt(n);
for(i=1;i<=n;i++)
{
fact=fact*i;
}
document.write("factorial of a no_"+fact);
</script></body></html>