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

plz give ans to this in vb script........ "krishna radha" i want to print this string "Radha Krishna" like this

5 Answers  


who will create the object?

0 Answers   TCS,


Explain about scrrun.dll?

0 Answers  


How will you check that a variable is an array in vbscript?

0 Answers  


How to create MSAcess table foriegn key

1 Answers  






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

0 Answers  


Give examples where vb script can directly run on users system with windows as os?

1 Answers  


write a vb script to find simple interest using functions

1 Answers  


Explain different types of segment?

0 Answers  


wat is com(common object model)object for mozilla firefox??? if any knows the exact answer....plz rply me

2 Answers  


what is fire event method in qtp?

3 Answers   TCS,


Please let me Know regarding any material regarding VB Scripting which should be easily understandable for Beginners.

0 Answers  


Categories