write a vb script to calculate factorial of a number?
Answer Posted / mogal
n = 12345
f =1
for i =1 to len(n)
f = f* i
next
msgbox f
| Is This Answer Correct ? | 1 Yes | 2 No |
Post New Answer View All Answers
Why is the use of exit do or exit for statements within loops discouraged?
How will you get a random number between 0 and 1 in vbscript?
Write a Script for ATM in QTP
Which in-built function is used to format the number in the vbscript language?
What is the event handling in vbscript?
Can someone please tell me what poor design in a relational database (not the layout or style) is and how it can be avoided? PLEASE...im desperate.
I am working on QTP, got struck in one place.. In my application depending upon configuration WebEdit count is increasing/ decreasing.. how to get these webedits..
Explain about tristate constants?
How can you fetch the value of a cookie?
What is vbscript language used for and which earlier language is it modeled upon?
What are class events?
How to throw an error in vbscript?
What is the purpose of drive object of scripting.filesystemobject class in vbscript?
Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)
Hi Friends, I have an issue like the describe below: I'm using QTP and I'm testing on SharePoint. As you knoe, SharePoint has a customize function for user, so that, If I add an object Web Table at the first time, that object was recognized by "index" and "html tag", after that, if someone change the display of web part, the "Index" of my object was changed as well and QTP unable to select that Web Table. Can you guide me how to identify or anyway to keep that Web Table object as unique object? Thanks a lot.