Write VB script to test given number is Prime Number
Answer Posted / prasanth
Dim n
count=0
n=inputbox("enter a number")
For i=2 to n-1
If n mod i=0Then
count=count+1
End If
Next
If count>1 Then
print "given numer is normal number"
else
print "given number is prime number"
End If
| Is This Answer Correct ? | 8 Yes | 15 No |
Post New Answer View All Answers
How to add synchronisation points in qtp?
what is object and child object.. explain ..if possible give some example for better understanding ..
What is the file extension of the code file in qtp?
Explain process of smart Identification in QTP?
Can any one explain me what is the procedure to connect the remote desk by using QTP 9.2 ?
Differences between quicktest professional (qtp) and winrunner?
Where should i find checkpoint and virtual objects's Object properties and values in the QTP 9.2 Means where checkpoints or virtual objects related data will store If i want to get the runtime object properties how can i use Getroproperties on Checkpoints
what is key word driven frame work ? why it is called like that ? what is the diference between keyword driven and data driven frame work ?
How you will rate urself in QTP in the range of 0 to 5
What are the check points can be inserted without recording?
Output values? i want a practical example
How to replay a script in qtp?
Hi, Hope you viewers are doing fine with good health. What are the steps and connection parameters to connect to Oracle db ? Can you connect with just the Oracle client or Oracle XE ? Cheers!!
What are the properties you would use for identifying a browser and page when using descriptive programming?
What is the extension of the recovery scenario file in qtp?