write a vb script to display factorial of a number using
function



write a vb script to display factorial of a number using function..

Answer / 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

More VB Script Interview Questions

Hi all..I have two values. a=20 ,b=30 I want to perform c= a+b and c= a*b using user define function.please anyone give the answer

1 Answers  


Explain about adodb.stream class?

0 Answers  


write a vb script to add two 2*2 matrix

2 Answers  


How to throw an error in vbscript?

0 Answers  


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

0 Answers  


How will you get the octal value of the given number in vbscript?

0 Answers  


what is used of Property........End Property loop ? how to write the script for it?

0 Answers  


Which operator is used for fetching the modulus of the 2 numbers in the vbscript language?

0 Answers  


how to operate webobjects in a webpage using getobject function and then using generic methods?

0 Answers  


Mention what is select case statement?

0 Answers  


about vb scripting programs this type of all question& answers

0 Answers  


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

0 Answers  


Categories