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
give me any information abou vb script books learn quckly
Explain different types of segment?
Differentiate javascript and vbscript?
Mention what is variant in vbscript?
I want to run QTP script on Linux server is it possible to do this by connecting Windows to Linux through VPN/Terminal Server and just run the script on Linux server.
How to write functions and sub in vb script?
How to delete a cookie using vbscript?
What is the technology used by vb script?
what is the object hyrarchy in QTP for a web based application
Explain about vb script?
Explain the scope of the variables using dim, public, and private keywords respectively.
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 about constants in vb script?
What are the disadvantages of vbscript?
while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans