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
who will create the object?
How to write functions and sub in vb script?
If else for do while select in vb script?
can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.
please can you help me to get a code of flames using a visual basic 6
What is the difference between function and procedure?
What is the use of the formatdatetime function in the vbscript language?
What is select case statement?
Explain about operator precedence in vb script?
What are string functions in vbscript?
What is the use of the recordset object and which statement is used to create such an object?
What is difference between vbscript and vba?
When does ‘on click of button’ event gets triggered in the vbscript language?
Mention characteristics of sub procedures?
Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...