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
Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?
Mention what is the technology used by vb script?
Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks
Which operator can be used to do an xor operation in vbscript?
What is the purpose of on error resume next statement?
What are the 2 ways in which a variable can be declared in the vbscript language?
How do you declare a variable in vbscript?
How will you get the last occurrence of one string within another string using vbscript?
What methods are used to create text files and open text files in the vbscript language?
How to capture a runtime error in vbscript?
Description.Create
Explain about arrays in vb script?
How will you get the exponent of the given number in vbscript?
please can you help me to get a code of flames using a visual basic 6
How to replace junk code recorded by QTP with a mall function.