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
Explain sga memory structures?
Is vbscript a case-sensitive or case-insensitive?
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
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
How to open excel in vb script?
How will you convert a given number to long in vbscript?
Explain about arrays in vb script?
what is diff between static and dynaic arrys?
i need to sort the data using qtp script for this how i need to write a qtp script
What is sql loader? Explain the files used by sql loader to load file?
How are values assigned to string type and numeric type variables?
What is loose binding? Why is it not a good practice to use it?
What are the properties of regexp object?
Which function is used to perform string comparison?
What are class variables?