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 |
Write a code to print numbers from 5 to 0?
If we take 2 strings as “good” and “bad” then what will ‘+’ and ‘&’ operators return?
which one is more secure vb script or java script ??????? or both are same ??????
Hi everybady, i have faced few Qns in one of i attended interview, please help me out with these below Qns. 1. how to join values without using join function? 2. how to compare values without using String compare function? 3. input is Bangalore, but i need output like this below format, what is function to use and get this outcome B A N G A L o R E 4. Input is "CapGemini" but uotput should be like this "inimeGpaC" 5. Input is 1 1 2 1 2 3 1 2 3 4 1 2 3 4 5 Can someone let me know results of this Qns, please. Thanks.
How can the spaces from the string be removed?
Explain the scope of the variables using dim, public, and private keywords respectively.
My Salary is 65000. How Much TDS I have to pay
Illustrate briefly about the different types of statement
How to open browser in vb script?
What is the use of the date function in the vbscript language?
can anyone send me a vb scripts code for clicking on a link and coming back on home page again does the same for many links on a web page.
how to write validation function for date in vb script