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 display factorial of a number using
function

Answer Posted / mudaseer

sub fact(pnum)
dim vf
vf=1
for i=2 to pnum
vf=vf*i
next
msgbox vf
end sub
call fact(0)
call fact(3)

Is This Answer Correct ?    4 Yes 14 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain sga memory structures?

962


Is vbscript a case-sensitive or case-insensitive?

1198


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

14029


Dear All, I am geting below IE error whilie executing the QTP scripts in Batch mode "Internet Explorer has encountered a problem and needs to close. We are sorry for the inconvenience." can any one suggest me how to resolve this issue . Thanks Balaji

1664


How to open excel in vb script?

967


How will you convert a given number to long in vbscript?

830


Explain about arrays in vb script?

1012


what is diff between static and dynaic arrys?

2079


i need to sort the data using qtp script for this how i need to write a qtp script

3614


What is sql loader? Explain the files used by sql loader to load file?

1086


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

937


What is loose binding? Why is it not a good practice to use it?

1049


What are the properties of regexp object?

1024


Which function is used to perform string comparison?

1052


What are class variables?

982