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

give me any information abou vb script books learn quckly

2270


Explain different types of segment?

1090


Differentiate javascript and vbscript?

1095


Mention what is variant in vbscript?

992


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.

2363


How to write functions and sub in vb script?

1154


How to delete a cookie using vbscript?

1212


What is the technology used by vb script?

1018


what is the object hyrarchy in QTP for a web based application

2465


Explain about vb script?

1278


Explain the scope of the variables using dim, public, and private keywords respectively.

1202


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?

1059


Explain about constants in vb script?

1082


What are the disadvantages of vbscript?

1306


while using Keyward driven framework in QTPif new requirements are added how to manage it...plz ans

2121