write a vb script to calculate factorial of a number?
Answer Posted / mudaseer
vf=1
vnum=inputbox("enter a no")
for i=2 to vnum
vf=vf*i
next
msgbox vf
Is This Answer Correct ? | 98 Yes | 25 No |
Post New Answer View All Answers
Which in-built function is used to format the number in the vbscript language?
Mention what is select case statement?
In the Web page we have a table link, if we click on that link all the contents under that link will be sorted (asscending/Descending). Now i want to check in which order the list is ? for that i need to get the data in to some var How can i get that cells data?
Explain the .wsf files?
How will you convert a string to upper case string using vbscript?
What purpose does ‘on error resume next’ serves?
Write a vbscript procedure that converts feet to inches. Hint: there are 12 inches in a foot?
What are subprocedures in vbscript?
How to open excel in vb script?
what is event handling?
What is loose binding? Why is it not a good practice to use it?
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
How are values assigned to the variables in the vbscript language?
Mention what is byref and byval parameters in vbscript?
How to create a function in vbscript?