How to get 120 using 5 zeroes, you can use any operator(+,
*, /...) in qtp.
Answers were Sorted based on User's Feedback
Answer / sureshkumar
We can get 120 using factorial, i.e
Factorial (0) = 1 so that
(0! + 0! + 0! + 0! + 0!)! = 5! => 120
Is This Answer Correct ? | 7 Yes | 1 No |
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 |
WHAT IS ENVIRONMENT VARIABLES?and where it is used in real time scenario?
Explain the filter expression?
We have 1 web page with names column. I am giving the Service Providers1,2,3.... @ that time dynamically some no of names are displaying in the webpage and The Pop up windows are opening(No.of Pop Up windows=No.of Names). The names may be diffar for each and every Service Provders (Dynamically) How can we handle the Dynamic values?
how to display all the links in one page using vb script in qtp.
1 Answers DST Global Solutions,
how to add the shared repository file to the script file while running the script manuall
What is sql loader? Explain the files used by sql loader to load file?
Which loop is used in case of arrays in the vbscript language?
int a=4857 i need output as 7584.without using any inbuild function?
How are values assigned to string type and numeric type variables?
What is vbscript procedures?
What is difference between vbscript and vba?
What are subprocedures in vbscript?