<script> var x=parseInt(prompt("Enter the number","")) var s=x for(i=x-1;i>0;i--) { s=s*i; } document.write(s); </script>
Comments 2