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
Can any suggest me what is exposure testing?
how will you load the test cases in ddt?
How many add-ins comes by default with quicktest professional (qtp)?
What are the key elements available in test result window?
Describe how Smart Identification is used
What is RTM (require ment tracebulity marix) fromate?
What is accessibility check point?
Can anyone pls tell me in realtime (descriptive programming) how will the properties of the object be given to the test team. R they given in an excel sheet and is the same sheet also given to the development team and by whom is this given? Thanks a lot.
Is it possible to call from one action to another action in qtp?
1. What is the difference between Keyword and function in the keyword driven framework? 2. How do you associate Keywords to the script ?
How to find Operating system information using QTP script?
Name the different types of recording modes?
how to write the descriptive programming in QTP for remove the object value and substitute, with a variable then call the validation from excel
How will you report the bug and explain the defect tracking sheet you handled?
your coming from electrical backgroung..but y ur coming to software side?