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 |
What is the difference between vb debugger and the script debugger?
Mention what are the rules to name variable in vbscript?
How to access array data?
Explain the extension .hta?
Can any one provide code for Mid(string,start[,length]). I have been asked to write code for Mid(). i.e We need to define our own function say MyMid() which should behave same like built-in Mid function
Hi All, I am facing one problem in QTP. There is link object in my application that exist in the Frame in mozilla firefox. Click event on that object is not working but once the frame is enabled/activated then click event works fine.But the frame does not have the activate property. This problem is coming in firefox only. Regards
what is extension of the file if its saved from recovery manger to some drive
how do you make the variable declaration mandatory?what is the use of "option explicit"?
What purpose does ‘on error resume next’ serves?
Explain about the support of asp for vb script functionality?
what is used of Property........End Property loop ? how to write the script for it?
Plz give the vb script for the following scenerio. In travel booking we have to select from delhi to mumbai from the combobox The prices will be display in another combo box .But i have to select the lowest price for it and submit it