write a vb script to calculate factorial of a number?
Answer Posted / arvind singh
a = InputBox("Enter a no to calculate factorial for")
Result = 1
Do While a > 0
Result = Result*(a)
a = a-1
Loop
MsgBox Result
| Is This Answer Correct ? | 8 Yes | 4 No |
Post New Answer View All Answers
How will you get the smallest subscript of an array in vbscript?
What is difference between vbscript and vba?
If else for do while select in vb script?
Mention what is the main difference between function and sub-procedure?
How to write VB script for login module?
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
What is the use of the recordset object and which statement is used to create such an object?
How will you get a subset of a array in vbscript?
Which function allows you to instantiate an object given its programmatic identifier or progid?
What is vbscript language used for and which earlier language is it modeled upon?
How to Import data from a file (file is on the desktop) to the data table
about vb scripting programs this type of all question& answers
What aspects of vbscript make it safe so that a web page using vbscript cannot destroy or corrupt information on a user's computer?
Explain the support of asp for vb script functionality?
Explain vbscript in detail?