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...

write a vb script to calculate factorial of a number?

Answer Posted / arvind singh

a = InputBox("Enter a no to calculate factorial for")
Result = 1
Do While a > 0
Result = Result*(a)
a = a-1
Loop
MsgBox Result

Is This Answer Correct ?    8 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How are values assigned to string type and numeric type variables?

1063


filter the array values without using filter function?

2170


Compare java script and vb script?

1139


how to write codings in QTP using vb script. please help me. i am new to QTP. it is easy or very much tough. please tell me

14341


how to write a vb script in QTP for yahoo registration form, i want to check the performance also like performance test, stress, load test like that.

5264


Mention what are the rules to name variable in vbscript?

1070


What is difference between vbscript and vba?

1286


Description.Create

2692


What is the difference between a dictionary and an array?

1116


Explain about arrays in vb script?

1121


hi Set myobj=Description.Create() myobj("type").value="submit" myobj("name").value="google search" myobj("html tag").value="button" browser("title:=google").page("title:=google").webButton (myobj).Click i was running above code in one weak back it was working fine i got result,again i opened after few days ,again i was trying to run the code it shows run time error in last line of my code ,why ?pls answer my question?

2228


What are class events?

1023


what is event handling?

1053


What are the different types of loops available in the vbscript language?

1033


what is the standards used for writing the script in QTP

2382