Please anyone tell me how can I print factorial of n numbers using subroutine in vbscript.
I have found this code somewhere but its not working
<html>
<head>
<script language="vbscript">
num=inputbox("Enter a number")
Sub fact
fact=fact*k
Document.write("Factorial of " & num & " = " & Fact)
End sub
</script>
</head>
<body>
<script language="vbscript">
fact
Call fact
</script>
Please anyone help fast
Bookmarks