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

Can we create Crystal Report object in QTP?If yes then what it is and what are its various properties?

3456


Mention what is the technology used by vb script?

971


Hi this is Vinoth. I need a help on below mentioned question A combobox contains list of items assume as 5 I have to get each items Individually and I have to Export to datatable. Please help me on this. Thanks

2124


Which operator can be used to do an xor operation in vbscript?

1247


What is the purpose of on error resume next statement?

987


What are the 2 ways in which a variable can be declared in the vbscript language?

1057


How do you declare a variable in vbscript?

1055


How will you get the last occurrence of one string within another string using vbscript?

1181


What methods are used to create text files and open text files in the vbscript language?

973


How to capture a runtime error in vbscript?

1147


Description.Create

2636


Explain about arrays in vb script?

1049


How will you get the exponent of the given number in vbscript?

1007


please can you help me to get a code of flames using a visual basic 6

1778


How to replace junk code recorded by QTP with a mall function.

2065