Write VB script to test given number is Prime Number
Answer Posted / kishore
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>3 Then
print "given numer is normal number"
else
print "given number is prime number"
End If
| Is This Answer Correct ? | 31 Yes | 37 No |
Post New Answer View All Answers
How do you test DLL files using automation Tool QTP?
With what extension you can save the list of tests in a file to run in test batch runner?
hi nani my doubt is how does qtp process metrix related to software process.
What is the meaning Work bench?
What is throw Object?
hi can anybody help with an qtp 9.2 license key please. Thanks, Nitesh.
How can you write the scripts that operate on different objects depending on run-time information?
.have you ever written compiled module? if yes , tell me about some of the function that you wrote.
Any body have QTP 9.5 licence key. please provide me at madhukar_dec30@yahoo.co.in
What are the different recording modes and how do they work?
Could any one tell me "How can i recognize my cursor position using QTP 9.2" Give me a scripts for this
1--How many functions u develop 2--What is an array 3-- where is ur server 4--U involved in unit testing 5--how ur test the background colour using QTP
What is difference between design time and run time data table?
Explain in brief about the quicktest professional (qtp) automation object model?
banking domain description for software tester for interview