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

when we use filter funtiom invb script(QTP)

2767


Differentiate javascript and vbscript?

1018


Mention how you can call vbscript functions?

1120


Hello friends..... Can any give the methods for Ms-Access, and Mozilla firefox in Automation Object Model in QTP. Please give me currect answers... if you do not understand my question please don't give answers. Thanking you.

2326


Mention what is variant in vbscript?

936


How to find the font in qtp. Scenario:After entering the username and passwd you will be navigate into the "welcome:Username" page.Now I want to extarct font for this message.

2127


How many types of operators are available in the vbscript language?

952


Explain the constants in vbscript?

974


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

1989


How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...

3428


What is the event handling in vbscript?

972


Explain sga memory structures?

1018


how does vb script help in web page designing? explain with example.

1984


Explain a few date functions in vbscript

969


What is the purpose of drive object of scripting.filesystemobject class in vbscript?

994