How to get 120 using 5 zeroes, you can use any operator(+,
*, /...) in qtp.
Answer Posted / testengineer
Option Explicit
Dim temp,Factorial,i,j,k,x
temp=0
Factorial = 1
For i=1 to 5 step 1
x= Inputbox ("Enter a No. :") '(Enter Zero for
Five Times)
For j=x to 1 Step -1
Factorial=Factorial*j
Next
temp = temp+Factorial
Next
For k=temp to 1 Step -1
Factorial=Factorial*k
Next
Msgbox Factorial
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All 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?
Is VB Script Case sensitive or Case insensitive?
Which object is used to work with the database in the vbscript language and what statement is used to create this object?
Explain about vb script?
hi what is called GUI in QTP 8.2 and how can we test the apllication using GUI?
Mention if qtp generates vbscript code as we record actions, can't it possible to directly write using vbscript code when qtp does the same thing too?
Explain the support of asp for vb script functionality?
what is the differance between BYVAL,BYREF?
Explain about scrrun.dll?
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..
In what way program "hello world" you can write in vbscript?
There are 5 web pages.write a script to click the button on 4th web page.
In html file what is an ideal position to include vbscript?
how to write validation function for date in vb script
What are class variables?