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 How do you create a recordset object in vbscript?
What is the purpose of the err object in the vbscript language?
If else for do while select in vb script?
How will you get a string with the specified character the specified number of times in vbscript?
Develop a parameterized action that accomplishes the following a. Launch a browser of users choice ( example : IE, chrome etc) b. Open up a search engine (Google, Bing etc) c. Perform a search d. Click a particular link depending on the user’s choice ( 1st , 2nd or third link)
Explain about the extension .hta?
did any one attended interview in applabs if you had gone through plz tell me the procedure
Illustrate briefly about the different types of statement
Both Static and dynamic arrays are handled by VB script. Is it true?
Explain the constants in vbscript?
How will you get the octal value of the given number in vbscript?
Explain about the asc function?
How to Import data from a file (file is on the desktop) to the data table
Hai this is sheik, i want to learn VB scripts for web application pls guide me what are all basic things need to know to learn VB scripts in web application.
What are class events?