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
when we use filter funtiom invb script(QTP)
Differentiate javascript and vbscript?
Mention how you can call vbscript functions?
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.
Mention what is variant in vbscript?
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.
How many types of operators are available in the vbscript language?
Explain the constants in vbscript?
How to Import data from a file (file is on the desktop) to the data table
How to use QTP Object in .vbs(vbscript file) file Ex: Browser().., wait(), exist() and etc...
What is the event handling in vbscript?
Explain sga memory structures?
how does vb script help in web page designing? explain with example.
Explain a few date functions in vbscript
What is the purpose of drive object of scripting.filesystemobject class in vbscript?