Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

what is the use of QCUtil? explain with one example?

7063


How to Import data from a file (file is on the desktop) to the data table

2074


What is vbscript?

1119


Which keyword is used to declare a variable in the vbscript language?

952


Mention characteristics of sub procedures?

1053


Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?

974


How will you get a combined string from array of string in vbscript?

966


how to increase the values in text box in a given text box increament by two values by clicking on button

2204


How are values assigned to the variables in the vbscript language?

1072


Mention what is select case statement?

966


Which function is used in the vbscript language to convert the specified expression into a date type value?

950


Explain the arrays in vb script?

1072


Mention the environments where vbscript could be run?

1251


write a function to read the items from combobox of Flight reservation & save in excel (QTP)??

2862


What purpose does ‘on error resume next’ serves?

1087