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
Which data type/types are supported by vbscript language and what are their specialties?
Explain about vb script?
Hello Guys, If any body looking for "worksoft certify tool training in bangalore", please contact me aimansaud@gmail.com
Explain the functionality of vbscript?
How are comments handled in the vbscript language?
What is the use of the ‘open’ method to work with the database in the vbscript language and what connection string is passed in the same and what is its usage?
Description.Create
How to take whole text output from screen of Bitmap Application.
what do you mean .ota mobile format
How will you check that a variable is an array in vbscript?
How will you get the last occurrence of one string within another string using vbscript?
What is difference between vbscript and vba?
How are values assigned to the variables in the vbscript language?
Explain what is loose binding? Why is it not a good practice to use it?
i have a problem with this error(this error related edit and
delete button,when i click this button in datagrid..i will
get this error)"Invalid postback or callback argument.
Event validation is enabled using