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 a few date functions in vbscript
Out of the different type of operators, which are evaluated first and last in the vbscript language?
Hi Friends my Question is very simple,in Manual testing when we click on a hyper link it directs us to the relavent page or it re-directs us to the current page,so there we can easily write testcase but same thing if we do in automation script using QTP & need to generate report using Reporter.report event how we will do it?thanks in advance...
Mention characteristics of sub procedures?
Mention the environments where vbscript could be run?
By default in vbscript the arguments passed to functions and subroutines are by reference or by value?
What is variant in vb script?
Which conditional statement is the most convenient one to use in the case of multiple conditions in the vbscript language?
Program to use input box and send even numbers into sheet1 and odd numbers into sheet2 and prime numbers into sheet3 using vbscript(QTP)?
if u ve resrevation for train and u get a number supose 1234xxxokie.after sucessul entering all required fields. now u put that number in search and want to chk wether these ar same or not if both ar same then its okie otherwise test fail.what would be the vb script code for it to compare these two values of different page.
Hi anyone Can Send Solution to the Question wt m posting now Prepare Script for the Bellow Scenario? Login to Gmail Page Open Inbox check Mails save them in a Folder
Explain sga memory structures?
How to add actions in driver script to run those actions in QTP?
How to delete a cookie using vbscript?
Which function is used in the vbscript language to convert the specified expression into a date type value?