Tuesday, April 23, 2013




Factorial program Source Code -- Logic programs

<html>
<head><TITLE></TITLE>
<script language="JavaScript">
var a=prompt("enter value");
var b=a;
var c=a;
for(i=2;i<a;i++)
{
c=c-1;
b=b*c;
}
alert(b);
</script>
</head>
</html>

0 comments:

Post a Comment