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
What is meant by Output Value in UFT?
What is recovery scenario manager? When you go for recovery scenario manager? Tell me one scenario were your used recovery scenario in your project?
How to execute a winrunner script in quicktest professional?
What does mean by Scope of Automation?n How we defined it?
How to automate a script in mainframes environment? I have the terminal emulator Add in. Describe in detail.
what is review
What are the 3 main stages involved in testing with qtp?
How to integrate QTP with QC using VB Scripting? What are the prerequisites to connect with QC?
What are the technologies supported by qtp?
How to find the path of folder in which the test is saved in qtp?
what the difference between shared repository and per action repository?
What are main panes available in qtp test browser?
could any help me please, how to work on visual foxpro application using UFT
If you are testing a web application then what will you test in that application?
Where is the Bitmap checkpoint information stored?