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 |
how to find number of characters(letter a) in the sentence Rain Rain Go away
Hi I don't have any idea on VBscript. can any one point me to a good web site to learn VBscript. Regards lina
what types of bugs will we find out in banking projects for automation testing?
0 Answers Napier Healthcare, TCS,
What is the difference between ByRef and ByVal. When to use ByRef and ByVal
wht must be the interview question on corinthian information technology solutions incorporated.
How will you get the last occurrence of one string within another string using vbscript?
How to Convert Hex color code to color name in VB Script?
What are class events?
How can I access an object in another frame?
What is event handling in vbscript?
Give me sm ideas to write Vbscripts abt protocol testing abilash700@gmail.com.
If a calulator having 3 buttons (of any number)in 3 of them one is not working properly due to which answer is wrong always. write a script to find out which button is not working properly ?