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
what do you mean .ota mobile format
how to operate webobjects in a webpage using getobject function and then using generic methods?
I have an excel sheet with multiple ID's in a column. Now i need fetch those ID's in an application and check whether if it already exist in the DB. If not then i have to go with the process of inserting them in the DB. If it exists then i need to skip that ID and move to the next ID and check the same and proceed. How can i do that with for loop and if condition?
How to Convert Hex color code to color name in VB Script?
Explain about arrays in vb script?
who will create the object?
Which object is used to work with the excel sheets in the vbscript language and what statement is used to create this object?
what is the difference between modular and data and keyword driven framework
How can the spaces from the string be removed?
How can you create a file object to work with the files in the vbscript language?
What are the disadvantages of vbscript?
How will you get the exponent of the given number in vbscript?
Mention how to access array data?
Set srchobj=Description.Create() srchobj("type").value="text" srchobj("name").value="q" srchobj("html tag").value="input" browser("micclass:=google").Page("micclass:=google").webedit (srchobj).Set "qtp" what's wrong in my code pls tell me ? the above code working fine and i got my result pass,now i am trying to run the program it shows general run time error why?pls help me i am in learning stage ?
Explain about operator precedence in vb script?