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

Write a program to display the numbers in the below format using for loops? 1 2 3 4 5 6 7 8 9 10 11 12 and Write a program to display the numbers in the below format using for loops. 1 2 3 4 5 6 7 8 9 10

2 Answers  


There are 5 web pages.write a script to click the button on 4th web page.

0 Answers   Accenture,


how to store charecters of HARIBABU Using arrays

4 Answers   Cap Gemini,


Explain the scope of the variables using dim, public, and private keywords respectively.

0 Answers  


Description.Create

0 Answers   IBM,






Mention what is byref and byval parameters in vbscript?

0 Answers  


what is the code in QTP to take screen shot? Please send me any one to my mail id. my mailid is manu.sanepalli@gmail.com

4 Answers   TCS,


Write a Program to add 2 numbers without using operators (+,-) and without using third variable. Note: Use VBScript only Hint: You can use other operators like '/' & '*'(Division & Multiplication)

0 Answers   Quest,


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

0 Answers  


What is the output of a + b in vbscript if a = 5 and b = 10?

0 Answers  


How do display output message without using msgbox function?

5 Answers  


1) How can we use VB script in testing the application? 2) What all are the things(Software application to be installed in PC) we need to learn VBscript?

0 Answers  


Categories