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


Please Help Members By Posting Answers For Below Questions

Hello Friends , I am the new joinner of this website. I am working with Sapient ,Gurgoan I would like to ask few qurries regarding the QTP Tool of (Testing) Currently working on QTP Tool . I would like to no learn VB Script can u name some Books which i get in market. And a small issue in QTP I had 2 users right i have to login and send the document from this user to second user right. when i am send this doc some contendId number generates right. now i am loging into second user and i have to search for that contentId right i found it now i dont want to accept the document so i had an opption of check out ok i have to click on check out my QTP Code is like this Browser(" ").Page(" ").WebTable(" ").ChildItem (3,5,"Image",0).click Browser(" ").Page(" ").Link("ChecK Out").Click i new this code is perfectly right but when i am run the script i have to click on that particular contentId and click on check out but now the Problem is started the error is the document has been already checked out remeber every time my content id changes means it is the new contentId which is not been used atleast once Please help me out in this issue i am in big trouble

2044


1.I want to establish connection with excel and also want to fetch the data using SQL queries. 2.the code should be written in such a way that in future if I want to migrate from excel to MS excess database , then there should be minimal changes.

1525


Explain a few date functions in vbscript

566


How are comments handled in the vbscript language?

515


Explain sga memory structures?

591






Which constant is used for print and display functions and works as same as pressing enter key?

538


what is resorceallocation

1780


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2402


How to write a VBscript for web page performance test i need a code send if any knows the code If any knows VBScript book plz send to me the link to my mail plz

2402


Why is it recommended to close the database connection every time after the work is completed?

509


Mention when to use function procedures and what are its characteristics?

633


What is the use of the instr function?

597


How to pass argument by reference to a function in vbscript?

542


How will you get the smallest subscript of an array in vbscript?

825


what is event handling?

591